From fff312c59262be01f7582dbde0b591be4ca95b5f Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 24 Oct 2006 16:34:51 +0000 Subject: - Cleaned up the "show_steal_in_party" setting so it only takes effect when the item was successfully stolen (there was no point in telling you the item couldn't be stolen due to being overweight) - Cleaned up the pc_steal_item implementation (again). It now uses a more random, simple approach in each steal attempt. - Changed the way the skill_steal_max_tries work. Now it actually MEANS the max number of steal tries, use 0 to disable (unlimited tries). - Changed the default of skill_steal_max_tries to 0 as there's no proof anywhere that there should be such a limit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9057 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index 0469fea0f..bc9828764 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3705,8 +3705,7 @@ static const struct battle_data_short { { "pk_min_level", &battle_config.pk_min_level}, // [celest] { "skill_steal_type", &battle_config.skill_steal_type}, // [celest] { "skill_steal_rate", &battle_config.skill_steal_rate}, // [celest] - { "skill_steal_max_tries", &battle_config.skill_steal_max_tries}, // [Lupus] -// { "night_darkness_level", &battle_config.night_darkness_level}, // [celest] + { "skill_steal_max_tries", &battle_config.skill_steal_max_tries}, // [Lupus] { "motd_type", &battle_config.motd_type}, // [celest] { "finding_ore_rate", &battle_config.finding_ore_rate}, // [celest] { "exp_calc_type", &battle_config.exp_calc_type}, // [celest] @@ -4138,8 +4137,7 @@ void battle_set_defaults() { battle_config.pk_min_level = 55; battle_config.skill_steal_type = 1; battle_config.skill_steal_rate = 100; - battle_config.skill_steal_max_tries = 15; //=16 tries -// battle_config.night_darkness_level = 9; + battle_config.skill_steal_max_tries = 0; //Default: unlimited tries. battle_config.motd_type = 0; battle_config.finding_ore_rate = 100; battle_config.castrate_dex_scale = 150; @@ -4392,7 +4390,7 @@ void battle_validate_conf() { if (battle_config.sg_miracle_skill_duration_max < 2000) battle_config.sg_miracle_skill_duration_max = 2000; - if (battle_config.skill_steal_max_tries > UCHAR_MAX) + if (battle_config.skill_steal_max_tries >= UCHAR_MAX) battle_config.skill_steal_max_tries = UCHAR_MAX; #ifdef CELL_NOSTACK -- cgit v1.2.3-70-g09d2