summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-09 11:59:07 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-09 11:59:07 +0200
commit1d3171629ae1aea66f0f57cde7d4390c7fc760c1 (patch)
tree56537086086cd4868c9556ce0f7b5170291ad15b /lib
parent88a95bb6561ba7474f420fee1c73eeea18dfb1e4 (diff)
Lua: God quests: Move relic "setup" code to C
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/god.lua23
-rw-r--r--lib/scpt/god.lua15
2 files changed, 0 insertions, 38 deletions
diff --git a/lib/mods/theme/scpt/god.lua b/lib/mods/theme/scpt/god.lua
index 54314d60..31aafd17 100644
--- a/lib/mods/theme/scpt/god.lua
+++ b/lib/mods/theme/scpt/god.lua
@@ -39,29 +39,6 @@ function msg_directions()
end)
end
--- Set up relic number according to god
-function setup_relic_number()
- if player.pgod == GOD_ERU then
- god_quest.relic_num = 7
- elseif player.pgod == GOD_MANWE then
- god_quest.relic_num = 8
- elseif player.pgod == GOD_TULKAS then
- god_quest.relic_num = 9
- elseif player.pgod == GOD_MELKOR then
- god_quest.relic_num = 10
- elseif player.pgod == GOD_YAVANNA then
- god_quest.relic_num = 11
- elseif player.pgod == GOD_AULE then
- god_quest.relic_num = 16
- elseif player.pgod == GOD_VARDA then
- god_quest.relic_num = 17
- elseif player.pgod == GOD_ULMO then
- god_quest.relic_num = 18
- elseif player.pgod == GOD_MANDOS then
- god_quest.relic_num = 19
- end
-end
-
add_quest
{
["global"] = "GOD_QUEST",
diff --git a/lib/scpt/god.lua b/lib/scpt/god.lua
index d478bf1e..b8426182 100644
--- a/lib/scpt/god.lua
+++ b/lib/scpt/god.lua
@@ -39,21 +39,6 @@ function msg_directions()
end)
end
--- Set up relic number according to god
-function setup_relic_number()
- if player.pgod == GOD_ERU then
- god_quest.relic_num = 7
- elseif player.pgod == GOD_MANWE then
- god_quest.relic_num = 8
- elseif player.pgod == GOD_TULKAS then
- god_quest.relic_num = 9
- elseif player.pgod == GOD_MELKOR then
- god_quest.relic_num = 10
- elseif player.pgod == GOD_YAVANNA then
- god_quest.relic_num = 11
- end
-end
-
add_quest
{
["global"] = "GOD_QUEST",