summaryrefslogtreecommitdiff
path: root/lib/mods/theme/core
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-06 11:40:03 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:26 +0200
commit3f819c170739b098f9f7951fc9c2ff407f3bbf03 (patch)
tree911a13dd8d57a68c701fe4d38dd82653482abbfa /lib/mods/theme/core
parent6a860ab9022123d9fc5387424ef49eb3a814c64b (diff)
Lua: Moved corruption "can_gain" checks to C
Diffstat (limited to 'lib/mods/theme/core')
-rw-r--r--lib/mods/theme/core/crpt_aux.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mods/theme/core/crpt_aux.lua b/lib/mods/theme/core/crpt_aux.lua
index c1772c04..85cddbf3 100644
--- a/lib/mods/theme/core/crpt_aux.lua
+++ b/lib/mods/theme/core/crpt_aux.lua
@@ -55,11 +55,7 @@ function test_depend_corrupt(corrupt, can_gain)
end
-- are we even allowed to get it?
- if __corruptions[corrupt].can_gain and (not __corruptions[corrupt].can_gain()) then
- return FALSE
- end
-
- return TRUE
+ return player_can_gain_corruption(corrupt)
end
-- Gain a new corruption