summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-04-24 00:30:40 -0400
committermekolat <mekolat@users.noreply.github.com>2015-04-30 02:22:20 -0400
commit543924caa81c3469a90388e5112dcd93abf6eec9 (patch)
treef9943b7920ec2279fa75b034437d62a3e00c6f10 /src
parent69734d42b1f797775be72463efb8eca69edf5d4f (diff)
downloadtmwa-543924caa81c3469a90388e5112dcd93abf6eec9.tar.gz
tmwa-543924caa81c3469a90388e5112dcd93abf6eec9.tar.bz2
tmwa-543924caa81c3469a90388e5112dcd93abf6eec9.tar.xz
tmwa-543924caa81c3469a90388e5112dcd93abf6eec9.zip
remove deprecated getequipname builtin
Diffstat (limited to 'src')
-rw-r--r--src/map/script-fun.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 62407a5..8aae552 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -1119,45 +1119,6 @@ void builtin_freeloop(ScriptState *st)
}
/*==========================================
- * 装備名文字列(精錬メニュー用)
- *------------------------------------------
- */
-static
-void builtin_getequipname(ScriptState *st)
-{
- int num;
- dumb_ptr<map_session_data> sd;
-
- AString buf;
-
- sd = script_rid2sd(st);
- num = conv_num(st, &AARG(0));
- IOff0 i = pc_checkequip(sd, equip[num - 1]);
- if (i.ok())
- {
- Option<P<struct item_data>> item_ = sd->inventory_data[i];
- OMATCH_BEGIN (item_)
- {
- OMATCH_CASE_SOME (item)
- {
- buf = STRPRINTF("%s-[%s]"_fmt, pos_str[num - 1], item->jname);
- }
- OMATCH_CASE_NONE ()
- {
- buf = STRPRINTF("%s-[%s]"_fmt, pos_str[num - 1], pos_str[10]);
- }
- }
- OMATCH_END ();
- }
- else
- {
- buf = STRPRINTF("%s-[%s]"_fmt, pos_str[num - 1], pos_str[10]);
- }
- push_str<ScriptDataStr>(st->stack, buf);
-
-}
-
-/*==========================================
* 装備品による能力値ボーナス
*------------------------------------------
*/
@@ -3056,7 +3017,6 @@ BuiltinFunction builtin_functions[] =
BUILTIN(getcharid, "i?"_s, 'i'),
BUILTIN(strcharinfo, "i"_s, 's'),
BUILTIN(getequipid, "i"_s, 'i'),
- BUILTIN(getequipname, "i"_s, 's'),
BUILTIN(bonus, "ii"_s, '\0'),
BUILTIN(bonus2, "iii"_s, '\0'),
BUILTIN(skill, "ii?"_s, '\0'),