diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-02 22:10:00 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:28:25 +0200 |
commit | 2d8ba33e34c0cbab8b7db8bbd972f1b18b28b199 (patch) | |
tree | 3eaf296530d4776da4fd21e86ff85b6aab7d4432 /src/cmd6.c | |
parent | 6b85af588b8ef4d219bc011b7c31df07a314ba0c (diff) |
Lua: Move spell_chance() to C
Diffstat (limited to 'src/cmd6.c')
-rw-r--r-- | src/cmd6.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3683,7 +3683,7 @@ void do_cmd_use_staff(void) ident = FALSE; /* get the chance */ - chance = exec_lua(format("return spell_chance(%d)", o_ptr->pval2)); + chance = spell_chance(o_ptr->pval2); /* Extract object flags */ object_flags(o_ptr, &f1, &f2, &f3, &f4, &f5, &esp); @@ -3877,7 +3877,7 @@ void do_cmd_aim_wand(void) set_stick_mode(o_ptr); /* get the chance */ - chance = exec_lua(format("return spell_chance(%d)", o_ptr->pval2)); + chance = spell_chance(o_ptr->pval2); /* Extract object flags */ object_flags(o_ptr, &f1, &f2, &f3, &f4, &f5, &esp); |