summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-21 20:47:04 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-21 20:47:04 -0300
commit4b39e827cab45bfb3ce492cb9b284aa27e902ef1 (patch)
tree01fd04a9c5d2e71f357b9084bbfaedde77109163
parent166e356b976caed5a644a2ccf8b4b874a57b9bd5 (diff)
downloadserverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.gz
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.bz2
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.xz
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.zip
Move weather battle conf reloads to constants,
modify monster HP during day/night cycle (day: all mobs -10% HP)
-rw-r--r--conf/map/battle/monster.conf4
-rw-r--r--db/constants.conf6
-rw-r--r--npc/functions/weather.txt6
3 files changed, 13 insertions, 3 deletions
diff --git a/conf/map/battle/monster.conf b/conf/map/battle/monster.conf
index b69e68ef2..899a6a70b 100644
--- a/conf/map/battle/monster.conf
+++ b/conf/map/battle/monster.conf
@@ -36,7 +36,8 @@
mvp_hp_rate: 100
// The HP rate of normal monsters (that is monsters that are not MVP's) (Note 2)
-monster_hp_rate: 100
+// Modifying this value is without effect, as it is override during script runtime.
+monster_hp_rate: 90
// The maximum attack speed of a monster
monster_max_aspd: 199
@@ -138,6 +139,7 @@ mob_count_rate: 100
// Respawn rate of monsters on a map. 50 would make mobs respawn twice as fast (half delay time) (Note 2)
//Note: This does not affects mobs with immediate respawn (most normal mobs)
+// mob_spawn_delay: Modifying this value is without effect, as it is override during script runtime.
mob_spawn_delay: 100
plant_spawn_delay: 100
boss_spawn_delay: 100
diff --git a/db/constants.conf b/db/constants.conf
index 1532a2ce7..d7fc6a273 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4438,7 +4438,13 @@ constants_db: {
comment__: "Language function constants"
LANG_ON_SEA: 1
LANG_IN_SHIP: 2
+
+ comment__: "Configuration constants"
MAX_CYCLE_PC: 40
+ BCONFN_SPAWN: 70
+ BCONFD_SPAWN: 100
+ BCONFN_MOBHP: 100
+ BCONFD_MOBHP: 90
comment__: "Maze Generator constants"
MAZEMAPTYPE_NULL: 0
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index c18d12c24..10ac73e97 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -197,7 +197,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
- setbattleflag("mob_spawn_delay", 70);
+ setbattleflag("mob_spawn_delay", BCONFN_SPAWN);
+ setbattleflag("monster_hp_rate", BCONFN_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");
@@ -206,7 +207,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}
- setbattleflag("mob_spawn_delay", 100);
+ setbattleflag("mob_spawn_delay", BCONFD_SPAWN);
+ setbattleflag("monster_hp_rate", BCONFD_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");