summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 21:01:07 -0300
committershennetsind <ind@henn.et>2013-06-06 21:01:07 -0300
commitdc7f14c7dc9829061f8902354367bdc8467eb841 (patch)
treed5a1c5fc529e0934f5a8c8b8dc2e6090f1d3a49e /src/map/battle.c
parent538965ad7519636e4baeef4fe8c32f893db713b3 (diff)
downloadhercules-dc7f14c7dc9829061f8902354367bdc8467eb841.tar.gz
hercules-dc7f14c7dc9829061f8902354367bdc8467eb841.tar.bz2
hercules-dc7f14c7dc9829061f8902354367bdc8467eb841.tar.xz
hercules-dc7f14c7dc9829061f8902354367bdc8467eb841.zip
HPM: Minor Update
Made 'guild' interface available to plugins, added 'bc' in battle interface to link to map-server's battle config (special thanks to Shikazu!) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e78b98bdd..575c8ca59 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6221,8 +6221,12 @@ void do_final_battle(void) {
/* initialize the interface */
void battle_defaults(void) {
battle = &battle_s;
+
+ battle->bc = &battle_config;
+
battle->init = do_init_battle;
battle->final = do_final_battle;
+
battle->calc_attack = battle_calc_attack;
battle->calc_damage = battle_calc_damage;
battle->calc_gvg_damage = battle_calc_gvg_damage;