summaryrefslogtreecommitdiff
path: root/lib/mods/theme
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-08 17:52:16 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-08 18:19:35 +0200
commit1a33c8c5f7eb8d36642c59c37284cc8f06c3e102 (patch)
treed3419f5386e4aa663afcc9ccd35a8ec2223b0aa6 /lib/mods/theme
parent61da8b12362ed22ca3c1d82ebec953035cd2f8d9 (diff)
Lua: Library quest: Move more generation code to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r--lib/mods/theme/scpt/library.lua13
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