summaryrefslogtreecommitdiff
path: root/lib/scpt
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-09 10:17:39 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-09 10:17:51 +0200
commitb89a8b18c480f6c96b5f8ba1f67a29c45ab2007d (patch)
tree84f2e9f45e1e064b7d1de68cb5de538f5272cc1a /lib/scpt
parentd497a80b25bb612d63daa70582fca5eeaa708fec (diff)
Lua: God quests: Move HOOK_CHAR_DUMP code to C
Diffstat (limited to 'lib/scpt')
-rw-r--r--lib/scpt/god.lua21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/scpt/god.lua b/lib/scpt/god.lua
index 9e1f2039..e8b4fe74 100644
--- a/lib/scpt/god.lua
+++ b/lib/scpt/god.lua
@@ -133,26 +133,7 @@ add_quest
return quest_god_get_hook(item)
end,
[HOOK_CHAR_DUMP] = function()
-
- if (god_quest.quests_given > 0) then
-
- local relics = god_quest.relics_found
- local append_text = ""
- if (god_quest.relics_found == god_quest.MAX_NUM_GOD_QUESTS) then
- relics = "all"
- append_text = " and pleased your god"
- else
- if (god_quest.relics_found == 0) then
- relics = "none"
- end
- if (quest(GOD_QUEST).status == QUEST_STATUS_FAILED) then
- append_text = " and failed in your quest"
- end
- end
-
- print_hook("\n You found "..(relics).." of the relic pieces"..(append_text)..".")
-
- end
+ return quest_god_char_dump()
end,
},
}