summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-12 23:12:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-12 23:22:59 +0300
commitec700e101d420286caa149bd2858c3e159e55998 (patch)
treed0731b1158ffdb12eb2db23c762576cb37251792 /src/map/battle.h
parentddca9bf6efe551a7d7dbc3d12a7d638453defcd6 (diff)
downloadhercules-ec700e101d420286caa149bd2858c3e159e55998.tar.gz
hercules-ec700e101d420286caa149bd2858c3e159e55998.tar.bz2
hercules-ec700e101d420286caa149bd2858c3e159e55998.tar.xz
hercules-ec700e101d420286caa149bd2858c3e159e55998.zip
Extract some code from battle_calc_damage into battle_calc_pc_damage.
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 6fa600ada..cb15e3b90 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -587,6 +587,8 @@ struct battle_interface {
struct Damage (*calc_attack) (int attack_type, struct block_list *bl, struct block_list *target, uint16 skill_id, uint16 skill_lv, int count);
/* generic final damage calculation */
int64 (*calc_damage) (struct block_list *src, struct block_list *bl, struct Damage *d, int64 damage, uint16 skill_id, uint16 skill_lv);
+ /* pc special damage calculation */
+ int64 (*calc_pc_damage) (struct block_list *src, struct block_list *bl, struct Damage *d, int64 damage, uint16 skill_id, uint16 skill_lv);
/* gvg final damage calculation */
int64 (*calc_gvg_damage) (struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag);
/* battlegrounds final damage calculation */