summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/weather.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 9a589dea1..d15cb1fb4 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -11,16 +11,16 @@ function script is_night {
// Winter: Night > Day
// Autumn/Spring: Day = Night
//
+ // But we have TWO SUNS, meaning night is always smaller.
+ //
// By default, each period lasts a whole hour, give or take 15 minutes (?)
// 2 = GETTIME_MINUTE
// 3 = GETTIME_HOUR
if (gettime(3) % 1) {
- if (season() == SUMMER && gettime(2) <= 15)
+ if (season() == SUMMER && gettime(2) <= 30 || season() != WINTER && gettime(2) <= 15)
return 0;
return 1;
} else {
- if (season() == WINTER && gettime(2) >= 45)
- return 1;
return 0;
}
}