diff options
author | Haru <haru@dotalux.com> | 2020-05-03 22:52:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 22:52:02 +0200 |
commit | 24f518fa590066e6a303cfacccbe7c748b6dbdae (patch) | |
tree | 475b5ca6cfeb08a7d3ec55669b01787794eae22b /src/map/mob.h | |
parent | 090d276f4b329b37afdb1a370fbad15d6903f22a (diff) | |
parent | e8d6a43de1ad1efe19f7091ce62b0ea52aaf3617 (diff) | |
download | hercules-24f518fa590066e6a303cfacccbe7c748b6dbdae.tar.gz hercules-24f518fa590066e6a303cfacccbe7c748b6dbdae.tar.bz2 hercules-24f518fa590066e6a303cfacccbe7c748b6dbdae.tar.xz hercules-24f518fa590066e6a303cfacccbe7c748b6dbdae.zip |
Merge pull request #2691 from Kenpachi2k13/mob_skill_db
Extend and clean up monster skill DB code
Diffstat (limited to 'src/map/mob.h')
-rw-r--r-- | src/map/mob.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/mob.h b/src/map/mob.h index 4cfddc2cd..6ad1ce705 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 */ @@ -566,7 +573,7 @@ struct mob_interface { struct block_list* (*getfriendhprate) (struct mob_data *md, int min_rate, int max_rate); struct block_list* (*getmasterhpltmaxrate) (struct mob_data *md, int rate); int (*getfriendstatus_sub) (struct block_list *bl, va_list ap); - struct mob_data* (*getfriendstatus) (struct mob_data *md, int cond1, int cond2); + struct block_list *(*getfriendstatus) (struct mob_data *md, int cond1, int cond2); int (*skill_use) (struct mob_data *md, int64 tick, int event); int (*skill_event) (struct mob_data *md, struct block_list *src, int64 tick, int flag); int (*is_clone) (int class_); |