From 3d06abbc3b917b2ce1df8245a5856904e7e1fd53 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Sat, 11 Apr 2020 08:56:52 +0200 Subject: Add missing constants for global skill assignment --- src/map/mob.h | 7 +++++++ src/map/script.c | 5 +++++ 2 files changed, 12 insertions(+) (limited to 'src/map') diff --git a/src/map/mob.h b/src/map/mob.h index 4cfddc2cd..577e4db91 100644 --- a/src/map/mob.h +++ b/src/map/mob.h @@ -323,6 +323,13 @@ enum { MSC_SPAWN, }; +/** Special monster(-name) constants used to assign skills to a group of monsters. **/ +enum mob_group { + ALL_MOBS_NONBOSS = -1, + ALL_MOBS_BOSS = -2, + ALL_MOBS = -3, +}; + /** * Mob IDs */ diff --git a/src/map/script.c b/src/map/script.c index c08f5e829..5cdd16367 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -27847,6 +27847,11 @@ static void script_hardcoded_constants(void) script->set_constant("MST_AROUND4", MST_AROUND4, false, false); script->set_constant("MST_AROUND", MST_AROUND , false, false); + script->constdb_comment("Monster group constants"); + script->set_constant("ALL_MOBS_NONBOSS", ALL_MOBS_NONBOSS, false, false); + script->set_constant("ALL_MOBS_BOSS", ALL_MOBS_BOSS, false, false); + script->set_constant("ALL_MOBS", ALL_MOBS, false, false); + script->constdb_comment("pc block constants, use with *setpcblock* and *checkpcblock*"); script->set_constant("PCBLOCK_NONE", PCBLOCK_NONE, false, false); script->set_constant("PCBLOCK_MOVE", PCBLOCK_MOVE, false, false); -- cgit v1.2.3-70-g09d2