summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 21:01:07 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:41:01 -0400
commitba8cf0fb01f6cc997ef1424712954ea0d898b009 (patch)
tree803acc96f62c847c8f4782da6627526809b06353
parentaff746ed104ab2e8dfab32e4142e00f54edefa4e (diff)
downloadhercules-ba8cf0fb01f6cc997ef1424712954ea0d898b009.tar.gz
hercules-ba8cf0fb01f6cc997ef1424712954ea0d898b009.tar.bz2
hercules-ba8cf0fb01f6cc997ef1424712954ea0d898b009.tar.xz
hercules-ba8cf0fb01f6cc997ef1424712954ea0d898b009.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>
-rw-r--r--src/map/battle.c4
-rw-r--r--src/map/battle.h2
-rw-r--r--src/map/map.c1
3 files changed, 7 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;
diff --git a/src/map/battle.h b/src/map/battle.h
index 9d578d224..36796c516 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -463,6 +463,8 @@ extern int attr_fix_table[4][10][10];
* Battle.c Interface
**/
struct battle_interface {
+ /* */
+ struct Battle_Config *bc;
/* init */
void (*init) (void);
/* final */
diff --git a/src/map/map.c b/src/map/map.c
index 927ad7970..00f7a2976 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -5303,6 +5303,7 @@ void map_hp_symbols(void) {
HPM->share(atcommand,"atcommand");
HPM->share(buyingstore,"buyingstore");
HPM->share(clif,"clif");
+ HPM->share(guild,"guild");
HPM->share(ircbot,"ircbot");
HPM->share(logs,"logs");
HPM->share(script,"script");