diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-04-23 23:37:14 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-04-30 02:19:08 -0400 |
commit | 69734d42b1f797775be72463efb8eca69edf5d4f (patch) | |
tree | b0dc787ecf8d0781ae93c00dd000e131b116ebb3 /src | |
parent | 477a8ce254ddd82bc2396f4abe341a2c66c85919 (diff) | |
download | tmwa-69734d42b1f797775be72463efb8eca69edf5d4f.tar.gz tmwa-69734d42b1f797775be72463efb8eca69edf5d4f.tar.bz2 tmwa-69734d42b1f797775be72463efb8eca69edf5d4f.tar.xz tmwa-69734d42b1f797775be72463efb8eca69edf5d4f.zip |
remove builtin getitemname
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script-fun.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
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<ScriptDataInt>(st->stack, 1); } -/*========================================== - * IDからItem名 - *------------------------------------------ - */ -static -void builtin_getitemname(ScriptState *st) -{ - Option<P<struct item_data>> i_data = None; - struct script_data *data; - - data = &AARG(0); - get_val(st, data); - if (data->is<ScriptDataStr>()) - { - ZString name = ZString(conv_str(st, data)); - i_data = itemdb_searchname(name); - } - else - { - ItemNameId item_id = wrap<ItemNameId>(conv_num(st, data)); - i_data = Some(itemdb_search(item_id)); - } - - RString item_name = i_data.pmd_pget(&item_data::jname).copy_or(stringish<ItemName>("Unknown Item"_s)); - - push_str<ScriptDataStr>(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'), |