summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 561c6b596..039c2e7a9 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -110,6 +110,7 @@ OnMinute00:
OnMinute15:
OnMinute30:
OnMinute45:
+ debugmes "[Weather.sys] Starting to regen";
.@hti = htiterator(.wcore);
for(.@key$ = htinextkey(.@hti); hticheck(.@hti); .@key$ = htinextkey(.@hti)) {
@@ -193,6 +194,7 @@ OnMinute45:
}
}
htidelete(.@hti);
+ debugmes "[Weather.sys] Regenerated";
// During night, normal monsters respawn 30% faster. (Bifs and Bosses are immune)
//
@@ -205,25 +207,26 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
+ $@WEATHER_NIGHT=is_night(true);
setbattleflag("mob_spawn_delay", BCONFN_SPAWN);
setbattleflag("monster_hp_rate", BCONFN_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
- donpcevent("@exprate::OnReload");
- donpcevent("@droprate::OnReload");
+ donpcevent("@exprate::OnInheirtedReload");
+ //donpcevent("@droprate::OnReload");
} else if (!is_night() && $@WEATHER_NIGHT) {
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}
+ $@WEATHER_NIGHT=is_night(true);
setbattleflag("mob_spawn_delay", BCONFD_SPAWN);
setbattleflag("monster_hp_rate", BCONFD_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
- donpcevent("@exprate::OnReload");
- donpcevent("@droprate::OnReload");
+ donpcevent("@exprate::OnInheirtedReload");
+ //donpcevent("@droprate::OnReload");
}
- $@WEATHER_NIGHT=is_night(true);
- //debugmes "[Weather.sys] Weather reloaded";
+ debugmes "[Weather.sys] Weather reloaded";
end;
// Function to check stuff