diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-05 23:42:13 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:28:26 +0200 |
commit | 62e385cb769000cfefa052b1ab3e155314e7ac37 (patch) | |
tree | a3f9acc5147789393128df51dadd0599c4aacb5e /src/lua_bind.c | |
parent | a9b597979d99a53c56d2fa5b8498834364fef7a9 (diff) |
Lua: Move HOOK_CALC_BONUS corruption code to C
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r-- | src/lua_bind.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c index 765b8072..424d1f74 100644 --- a/src/lua_bind.c +++ b/src/lua_bind.c @@ -586,6 +586,19 @@ void lua_display_list(int y, int x, int h, int w, cptr title, list_type* list, i } /* + * Corruptions + */ +bool_ player_has_corruption(int corruption_idx) +{ + if (corruption_idx < 0) + { + return FALSE; + } + + return (p_ptr->corruptions[corruption_idx]); +} + +/* * Gods */ s16b add_new_gods(char *name) |