summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-31 23:50:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-31 23:50:14 +0300
commita3158d2110a2a846d39a5ddc364adb40c212241d (patch)
tree4c057530f67be9855e1b8d270992f689bf22d3ed /src/emap/init.c
parentd8603c474f62f62d3759b03ea317836383ba463c (diff)
downloadplugin-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.gz
plugin-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.bz2
plugin-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.xz
plugin-a3158d2110a2a846d39a5ddc364adb40c212241d.zip
Add into mob_db weapot type attacks modifier.
New group in mob_db: WeaponAttacks Example: WeaponAttacks: { Bows: 5000 // mean bow attack do 50% of normal attack } Default value is 10000 mean 100%
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 93d027c..179fe59 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -269,6 +269,7 @@ HPExport void plugin_init (void)
addHookPre(status, set_viewdata, estatus_set_viewdata_pre);
addHookPre(homun, gainexp, ehomunculus_gainexp_pre);
+ addHookPost(battle, calc_weapon_attack, ebattle_calc_weapon_attack_post);
addHookPost(battle, check_arrows, ebattle_check_arrows_post);
addHookPost(clif, addcards, eclif_addcards_post);
addHookPost(clif, addcards2, eclif_addcards2_post);