diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-11 08:56:52 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-11 08:56:52 +0200 |
commit | 3d06abbc3b917b2ce1df8245a5856904e7e1fd53 (patch) | |
tree | 5cad5d58d04f7ae8db83f56e83ea5f657fe56b1f /src | |
parent | f40cc839413cc82aed445d39cc3aa204dce87780 (diff) | |
download | hercules-3d06abbc3b917b2ce1df8245a5856904e7e1fd53.tar.gz hercules-3d06abbc3b917b2ce1df8245a5856904e7e1fd53.tar.bz2 hercules-3d06abbc3b917b2ce1df8245a5856904e7e1fd53.tar.xz hercules-3d06abbc3b917b2ce1df8245a5856904e7e1fd53.zip |
Add missing constants for global skill assignment
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.h | 7 | ||||
-rw-r--r-- | src/map/script.c | 5 |
2 files changed, 12 insertions, 0 deletions
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); |