diff options
author | Haru <haru@dotalux.com> | 2020-05-31 23:33:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 23:33:55 +0200 |
commit | b3189b88eafd5a159780000845bacef79310a22c (patch) | |
tree | 6abf9ca36ce7c703c2735589e7f89cef6e5f698a /src/map/pc.h | |
parent | 1cccfca3dd708354bf808068c1210ce353957f2e (diff) | |
parent | 468c81a5367c444e2e678148d556df94eaa623af (diff) | |
download | hercules-b3189b88eafd5a159780000845bacef79310a22c.tar.gz hercules-b3189b88eafd5a159780000845bacef79310a22c.tar.bz2 hercules-b3189b88eafd5a159780000845bacef79310a22c.tar.xz hercules-b3189b88eafd5a159780000845bacef79310a22c.zip |
Merge pull request #2699 from Kenpachi2k13/multi_itemskill
Enable multiple itemskill() calls per item
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 8d1cd0ca4..dfc1f886e 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -192,7 +192,8 @@ struct map_session_data { struct status_change sc; struct regen_data regen; struct regen_data_sub sregen, ssregen; - struct autocast_data autocast; + struct autocast_data auto_cast_current; // Currently processed auto-cast skill. + VECTOR_DECL(struct autocast_data) auto_cast; // Auto-cast vector. //NOTE: When deciding to add a flag to state or special_state, take into consideration that state is preserved in //status_calc_pc, while special_state is recalculated in each call. [Skotlex] struct { @@ -1028,7 +1029,10 @@ END_ZEROED_BLOCK; /* End */ void (*unequipitem_pos) (struct map_session_data *sd, int n, int pos); int (*checkitem) (struct map_session_data *sd); int (*useitem) (struct map_session_data *sd,int n); - int (*autocast_clear) (struct map_session_data *sd); + void (*autocast_clear_current) (struct map_session_data *sd); + void (*autocast_clear) (struct map_session_data *sd); + void (*autocast_set_current) (struct map_session_data *sd, int skill_id); + void (*autocast_remove) (struct map_session_data *sd, enum autocast_type type, int skill_id, int skill_lv); int (*skillatk_bonus) (struct map_session_data *sd, uint16 skill_id); int (*skillheal_bonus) (struct map_session_data *sd, uint16 skill_id); |