diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-20 11:42:58 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-20 11:42:58 +0000 |
commit | 9d02f1a1b111f882ca824583b1380a96fdeb556d (patch) | |
tree | 5fab218d6a29a109d9141a022873ac40eabd0c10 /src/map/battle.c | |
parent | a4756bb8123d607ed5c4b854653d2ddab814f555 (diff) | |
download | hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.gz hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.bz2 hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.xz hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.zip |
Added night_darkness_level
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ba4ab31a4..a23f8b510 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -5132,6 +5132,7 @@ static const struct { { "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] + { "night_darkness_level", &battle_config.night_darkness_level}, // [celest] //SQL-only options start #ifndef TXT_ONLY @@ -5357,6 +5358,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.night_darkness_level = 9; battle_config.castrate_dex_scale = 150; @@ -5476,6 +5478,9 @@ void battle_validate_conf() { // at least 1 client must be accepted if ((battle_config.packet_ver_flag & 63) == 0) // added by [Yor] battle_config.packet_ver_flag = 63; // accept all clients + + if (battle_config.night_darkness_level > 10) // Celest + battle_config.night_darkness_level = 10; } /*========================================== |