summaryrefslogtreecommitdiff
path: root/src/map/script-fun.cpp
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-04-30 01:12:59 -0500
committerWushin <pasekei@gmail.com>2015-04-30 01:12:59 -0500
commit477a8ce254ddd82bc2396f4abe341a2c66c85919 (patch)
tree555308202300ab0e06cfdd1148101a69fbdbaeed /src/map/script-fun.cpp
parent47bbdd0ac5614365c42f9899b7f9c5c6ca507779 (diff)
parentb77ac5278cae8ed970eae7763ace93e9b039a6de (diff)
downloadtmwa-477a8ce254ddd82bc2396f4abe341a2c66c85919.tar.gz
tmwa-477a8ce254ddd82bc2396f4abe341a2c66c85919.tar.bz2
tmwa-477a8ce254ddd82bc2396f4abe341a2c66c85919.tar.xz
tmwa-477a8ce254ddd82bc2396f4abe341a2c66c85919.zip
Merge pull request #59 from mekolat/getparam
deprecate builtin readparam & statusup2
Diffstat (limited to 'src/map/script-fun.cpp')
-rw-r--r--src/map/script-fun.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index f62b137..010b095 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -967,31 +967,6 @@ void builtin_delitem(ScriptState *st)
}
/*==========================================
- *キャラ関係のパラメータ取得
- *------------------------------------------
- */
-static
-void builtin_readparam(ScriptState *st)
-{
- dumb_ptr<map_session_data> sd;
-
- SP type = SP(conv_num(st, &AARG(0)));
- if (HARG(1))
- sd = map_nick2sd(stringish<CharName>(ZString(conv_str(st, &AARG(1)))));
- else
- sd = script_rid2sd(st);
-
- if (sd == nullptr)
- {
- push_int<ScriptDataInt>(st->stack, -1);
- return;
- }
-
- push_int<ScriptDataInt>(st->stack, pc_readparam(sd, type));
-
-}
-
-/*==========================================
*キャラ関係のID取得
*------------------------------------------
*/
@@ -1183,20 +1158,6 @@ void builtin_getequipname(ScriptState *st)
}
/*==========================================
- *
- *------------------------------------------
- */
-static
-void builtin_statusup2(ScriptState *st)
-{
- SP type = SP(conv_num(st, &AARG(0)));
- int val = conv_num(st, &AARG(1));
- dumb_ptr<map_session_data> sd = script_rid2sd(st);
- pc_statusup2(sd, type, val);
-
-}
-
-/*==========================================
* 装備品による能力値ボーナス
*------------------------------------------
*/
@@ -3120,12 +3081,10 @@ BuiltinFunction builtin_functions[] =
BUILTIN(getitem, "Ii??"_s, '\0'),
BUILTIN(makeitem, "IiMxy"_s, '\0'),
BUILTIN(delitem, "Ii"_s, '\0'),
- BUILTIN(readparam, "i?"_s, 'i'),
BUILTIN(getcharid, "i?"_s, 'i'),
BUILTIN(strcharinfo, "i"_s, 's'),
BUILTIN(getequipid, "i"_s, 'i'),
BUILTIN(getequipname, "i"_s, 's'),
- BUILTIN(statusup2, "ii"_s, '\0'),
BUILTIN(bonus, "ii"_s, '\0'),
BUILTIN(bonus2, "iii"_s, '\0'),
BUILTIN(skill, "ii?"_s, '\0'),