summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-12 08:39:17 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-12 08:39:17 -0300
commit69df270c8e5ae5ef86c7ebd1db6dfbf7ff26ab9d (patch)
treee530a5d183fb21ad50f2642cf2d46720d49c1c21 /npc
parent49f70c8289235df88d69f23be5d5a13581b77c0f (diff)
downloadserverdata-69df270c8e5ae5ef86c7ebd1db6dfbf7ff26ab9d.tar.gz
serverdata-69df270c8e5ae5ef86c7ebd1db6dfbf7ff26ab9d.tar.bz2
serverdata-69df270c8e5ae5ef86c7ebd1db6dfbf7ff26ab9d.tar.xz
serverdata-69df270c8e5ae5ef86c7ebd1db6dfbf7ff26ab9d.zip
New spec: $HARDCORE
Effect: Skip day/night cycle changes.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/weather.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index b432abb84..c6b0876ad 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -199,6 +199,12 @@ OnMinute45:
htidelete(.@hti);
debugmes "[Weather.sys] Regenerated";
+ // Hardcore: Skip day/night cycles
+ if ($HARDCORE) {
+ $@WEATHER_NIGHT=is_night(true);
+ end;
+ }
+
// During night, normal monsters respawn 30% faster. (Bifs and Bosses are immune)
//
// Also, announce to players about day/night cycle changes