summaryrefslogtreecommitdiff
path: root/lib/mods/theme
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-08 23:57:24 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-08 23:57:24 +0200
commit19a72f1025b0c25b62db56748e0e1f7097227abc (patch)
tree62b6fab0437024201c9b4f529376c77db0a6282d /lib/mods/theme
parentc07642d436b48aa3687b5e74d6ec68997ed3cd99 (diff)
Lua: God quests: Prepare for moving HOOK_PLAYER_LEVEL code to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r--lib/mods/theme/scpt/god.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/mods/theme/scpt/god.lua b/lib/mods/theme/scpt/god.lua
index d5097e85..a7c79924 100644
--- a/lib/mods/theme/scpt/god.lua
+++ b/lib/mods/theme/scpt/god.lua
@@ -33,6 +33,12 @@ function print_directions(feel_it, pfunc)
end
end
+function msg_directions()
+ print_directions(TRUE, function (line)
+ cmsg_print(TERM_YELLOW, line)
+ end)
+end
+
-- Set up relic number according to god
function setup_relic_number()
if player.pgod == GOD_ERU then
@@ -141,9 +147,7 @@ add_quest
cmsg_print(TERM_YELLOW, "When thy task is done, thou art to lift it in the air and call upon my name.")
cmsg_print(TERM_YELLOW, "I shall then come to reclaim what is mine!")
- print_directions(TRUE, function (line)
- cmsg_print(TERM_YELLOW, line)
- end)
+ msg_directions()
-- Prepare depth of dungeon. If this was generated in set_god_dungeon_attributes(),
-- then we'd have trouble if someone levelled up in the dungeon!