diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-04 12:22:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-10 21:12:13 +0300 |
commit | 1165a64ff7f054cf4cb875b623c7943eb809b0e6 (patch) | |
tree | db04d0faf579f84df586d7d304957201b7d5272a /src/map/battle.h | |
parent | 5cdb3d12c4236e0c3a682e30fed96192d2c58188 (diff) | |
download | hercules-1165a64ff7f054cf4cb875b623c7943eb809b0e6.tar.gz hercules-1165a64ff7f054cf4cb875b623c7943eb809b0e6.tar.bz2 hercules-1165a64ff7f054cf4cb875b623c7943eb809b0e6.tar.xz hercules-1165a64ff7f054cf4cb875b623c7943eb809b0e6.zip |
Extend battle.c for using custom skills from plugins.
Diffstat (limited to 'src/map/battle.h')
-rw-r--r-- | src/map/battle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h index e80e0091d..ea2538c30 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -612,6 +612,10 @@ struct battle_interface { struct block_list* (*get_enemy_area) (struct block_list *src, int x, int y, int range, int type, int ignore_id); /* damages area, originally for royal guard's reflect damage */ int (*damage_area) (struct block_list *bl, va_list ap); + void (*calc_masteryfix_unknown) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon); + void (*calc_skillratio_magic_unknown) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + void (*calc_skillratio_weapon_unknown) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + void (*calc_misc_attack_unknown) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag, struct Damage *md); }; struct battle_interface *battle; |