summaryrefslogtreecommitdiff
path: root/src/object1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-29 06:25:07 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-29 18:18:10 +0200
commitd98a999477698bb0a304c4995df44f2b7ef5389d (patch)
treee0d30c7a705368f7991371a143a9c4c7b06faf60 /src/object1.c
parent127f4d6985d998c65d958907758e474edb29ceec (diff)
Lua: Convert all the spell metadata to C code
(Yay automated translation!)
Diffstat (limited to 'src/object1.c')
-rw-r--r--src/object1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object1.c b/src/object1.c
index dac3085e..a4676744 100644
--- a/src/object1.c
+++ b/src/object1.c
@@ -2857,7 +2857,8 @@ void describe_device(object_type *o_ptr)
print_device_desc(o_ptr->pval2);
text_out("\nSpell level: ");
- text_out_c(TERM_L_BLUE, string_exec_lua(format("return tostring(get_level(%d, 50, 0))", o_ptr->pval2)));
+ sprintf(buf, FMTs32b, get_level(o_ptr->pval2, 50, 0));
+ text_out_c(TERM_L_BLUE, buf);
text_out("\nMinimum Magic Device level to increase spell level: ");
text_out_c(TERM_L_BLUE, format("%d", school_spells[o_ptr->pval2].skill_level));