From d98a999477698bb0a304c4995df44f2b7ef5389d Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 29 May 2012 06:25:07 +0200 Subject: Lua: Convert all the spell metadata to C code (Yay automated translation!) --- src/object1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/object1.c') 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)); -- cgit v1.2.3