summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-04-13 21:12:55 -0500
committerWushin <pasekei@gmail.com>2015-04-13 21:12:55 -0500
commitc776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa (patch)
tree8192f4b89a6e3a72d41f1759d558c21b45f86627
parent1ee72d7b3c9acd5221b43c7b86de869394a8ca89 (diff)
parent2850d7946c933e69fe468492e6b070fc984d32fd (diff)
downloadtmwa-c776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa.tar.gz
tmwa-c776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa.tar.bz2
tmwa-c776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa.tar.xz
tmwa-c776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa.zip
Merge pull request #47 from mekolat/killmonsterall
remove deprecated killmonsterall
-rw-r--r--src/map/script-fun.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index fd618f8..da26e2b 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -1554,25 +1554,6 @@ void builtin_killmonster(ScriptState *st)
BL::MOB);
}
-static
-void builtin_killmonsterall_sub(dumb_ptr<block_list> bl)
-{
- mob_delete(bl->is_mob());
-}
-
-static
-void builtin_killmonsterall(ScriptState *st)
-{
- MapName mapname = stringish<MapName>(ZString(conv_str(st, &AARG(0))));
-
- P<map_local> m = TRY_UNWRAP(map_mapname2mapid(mapname), return);
- map_foreachinarea(builtin_killmonsterall_sub,
- m,
- 0, 0,
- m->xs, m->ys,
- BL::MOB);
-}
-
/*==========================================
* NPC主体イベント実行
*------------------------------------------
@@ -3153,7 +3134,6 @@ BuiltinFunction builtin_functions[] =
BUILTIN(monster, "Mxysmi?"_s, '\0'),
BUILTIN(areamonster, "Mxyxysmi?"_s, '\0'),
BUILTIN(killmonster, "ME"_s, '\0'),
- BUILTIN(killmonsterall, "M"_s, '\0'),
BUILTIN(donpcevent, "E"_s, '\0'),
BUILTIN(addtimer, "tE"_s, '\0'),
BUILTIN(initnpctimer, ""_s, '\0'),