summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-24 16:34:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-24 16:34:51 +0000
commitfff312c59262be01f7582dbde0b591be4ca95b5f (patch)
tree498cd1eb3cb8001432bfd7dae52ccd8439c64d7a /src/map/battle.c
parent4dc8104b2a83a87caa5de69fa990a79f852d8bea (diff)
downloadhercules-fff312c59262be01f7582dbde0b591be4ca95b5f.tar.gz
hercules-fff312c59262be01f7582dbde0b591be4ca95b5f.tar.bz2
hercules-fff312c59262be01f7582dbde0b591be4ca95b5f.tar.xz
hercules-fff312c59262be01f7582dbde0b591be4ca95b5f.zip
- 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
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c8
1 files changed, 3 insertions, 5 deletions
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