From 69734d42b1f797775be72463efb8eca69edf5d4f Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 23 Apr 2015 23:37:14 -0400 Subject: remove builtin getitemname --- src/map/script-fun.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/map/script-fun.cpp') diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 010b095..62407a5 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -2245,34 +2245,6 @@ void builtin_divorce(ScriptState *st) push_int(st->stack, 1); } -/*========================================== - * IDからItem名 - *------------------------------------------ - */ -static -void builtin_getitemname(ScriptState *st) -{ - Option> i_data = None; - struct script_data *data; - - data = &AARG(0); - get_val(st, data); - if (data->is()) - { - ZString name = ZString(conv_str(st, data)); - i_data = itemdb_searchname(name); - } - else - { - ItemNameId item_id = wrap(conv_num(st, data)); - i_data = Some(itemdb_search(item_id)); - } - - RString item_name = i_data.pmd_pget(&item_data::jname).copy_or(stringish("Unknown Item"_s)); - - push_str(st->stack, item_name); -} - static void builtin_getitemlink(ScriptState *st) { @@ -3139,7 +3111,6 @@ BuiltinFunction builtin_functions[] = BUILTIN(mobcount, "ME"_s, 'i'), BUILTIN(marriage, "P"_s, 'i'), BUILTIN(divorce, ""_s, 'i'), - BUILTIN(getitemname, "I"_s, 's'), BUILTIN(getitemlink, "I"_s, 's'), BUILTIN(getspellinvocation, "s"_s, 's'), BUILTIN(getpartnerid2, ""_s, 'i'), -- cgit v1.2.3-70-g09d2