diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-08 17:52:16 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-08 18:19:35 +0200 |
commit | 1a33c8c5f7eb8d36642c59c37284cc8f06c3e102 (patch) | |
tree | d3419f5386e4aa663afcc9ccd35a8ec2223b0aa6 /lib/mods/theme | |
parent | 61da8b12362ed22ca3c1d82ebec953035cd2f8d9 (diff) |
Lua: Library quest: Move more generation code to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r-- | lib/mods/theme/scpt/library.lua | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/mods/theme/scpt/library.lua b/lib/mods/theme/scpt/library.lua index d2851a23..fca935fb 100644 --- a/lib/mods/theme/scpt/library.lua +++ b/lib/mods/theme/scpt/library.lua @@ -98,18 +98,7 @@ add_quest end, [HOOK_GEN_QUEST] = function() - -- Only if player doing this quest - if (player.inside_quest ~= LIBRARY_QUEST) then - return FALSE - end - - load_map("library.map", 2, 2) - level_flags2 = DF2_NO_GENO - - -- generate monsters - quest_library_gen_hook() - - return TRUE + return quest_library_gen_hook() end, [HOOK_STAIR] = function() local ret |