From 9080a58e2184eeb36b30e6dc653ec5459b3acfb1 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 17 May 2013 13:53:41 -0300 Subject: MOTD redesign much more flexible, as per community suggestion in http://hercules.ws/board/topic/320-motd-change-suggestion/ dropped motd_type config new motd is at npc/MOTD.txt dropped @motd, @gmotd commands Signed-off-by: shennetsind --- src/map/battle.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/map/battle.h') diff --git a/src/map/battle.h b/src/map/battle.h index 0975d978d..9d578d224 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -322,7 +322,6 @@ struct Battle_Config { int mobs_level_up_exp_rate; // [Valaris] int pk_min_level; // [celest] int skill_steal_max_tries; //max steal skill tries on a mob. if 0, then w/o limit [Lupus] - int motd_type; // [celest] int finding_ore_rate; // orn int exp_calc_type; int exp_bonus_attacker; -- cgit v1.2.3-70-g09d2 From dc7f14c7dc9829061f8902354367bdc8467eb841 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 6 Jun 2013 21:01:07 -0300 Subject: 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 --- src/map/battle.c | 4 ++++ src/map/battle.h | 2 ++ src/map/map.c | 1 + 3 files changed, 7 insertions(+) (limited to 'src/map/battle.h') 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"); -- cgit v1.2.3-70-g09d2