summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-11-03 08:10:26 -0200
committershennetsind <ind@henn.et>2014-11-03 08:10:26 -0200
commit239d480487e24294975f35ed55f210837ad1088e (patch)
treee044c88ffff32e4f9b42a86860509e1e6ce8736b /src/map/battle.c
parentbd0c805f732a3ec43ad253b6d2618be6fb640cdd (diff)
downloadhercules-239d480487e24294975f35ed55f210837ad1088e.tar.gz
hercules-239d480487e24294975f35ed55f210837ad1088e.tar.bz2
hercules-239d480487e24294975f35ed55f210837ad1088e.tar.xz
hercules-239d480487e24294975f35ed55f210837ad1088e.zip
Introducing 2014-10-22, Roulette and Per-Char Gender!
Details in http://hercules.ws/board/topic/7618-2014-10-22-roulette-and-per-char-gender/ Special Thanks to the all-mighty Yommy, Ziu and Haruna! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 1b8e44cb3..8aeb22fc2 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6837,7 +6837,8 @@ static const struct battle_data {
{ "song_timer_reset", &battle_config.song_timer_reset, 0, 0, 1, },
{ "snap_dodge", &battle_config.snap_dodge, 0, 0, 1, },
{ "monster_chase_refresh", &battle_config.mob_chase_refresh, 1, 0, 30, },
- { "icewall_walk_block", &battle_config.icewall_walk_block, 75, 0, 255, }
+ { "icewall_walk_block", &battle_config.icewall_walk_block, 75, 0, 255, },
+ { "feature.roulette", &battle_config.feature_roulette, 1, 0, 1, }
};
#ifndef STATS_OPT_OUT
/**
@@ -7088,6 +7089,13 @@ void battle_adjust_conf(void) {
battle_config.feature_banking = 0;
}
#endif
+
+#if PACKETVER < 20141022
+ if( battle_config.feature_roulette ) {
+ ShowWarning("conf/battle/feature.conf roulette is enabled but it requires PACKETVER 2014-10-22 or newer, disabling...\n");
+ battle_config.feature_roulette = 0;
+ }
+#endif
#if PACKETVER > 20120000 && PACKETVER < 20130515 /* exact date (when it started) not known */
if( battle_config.feature_auction == 1 ) {