summaryrefslogtreecommitdiff
path: root/src/object1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
commit0b74fd491aeda33e25a20986f40f6c461fb20f06 (patch)
tree6f1329635676b6bf995a71ba3c15a4d9f4aa42d3 /src/object1.cc
parent528a95aaef400b264203d3e8621887ea0307e9ea (diff)
Split spell_chance into device and book variants
The code calling spell_chance() always actually knows which kind of spell its looking at, so we might as well exploit that.
Diffstat (limited to 'src/object1.cc')
-rw-r--r--src/object1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object1.cc b/src/object1.cc
index 4dc266f5..e3f29bd3 100644
--- a/src/object1.cc
+++ b/src/object1.cc
@@ -11,7 +11,7 @@
*/
#include "angband.h"
-
+#include "lua_bind.hpp"
#include "quark.h"
#include "spell_type.h"
#include "spell_type.hpp"
@@ -2728,7 +2728,7 @@ void describe_device(object_type *o_ptr)
text_out_c(TERM_L_BLUE, format("%d", spell_type_skill_level(spell_at(o_ptr->pval2))));
text_out("\nSpell fail: ");
- sprintf(buf, FMTs32b, spell_chance(o_ptr->pval2));
+ sprintf(buf, FMTs32b, spell_chance_device(o_ptr->pval2));
text_out_c(TERM_GREEN, buf);
text_out("\nSpell info: ");