summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/weather.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 4eb7c2f24..d0bce445d 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -16,7 +16,9 @@ function script is_night {
// By default, each period lasts a whole hour, give or take 15 minutes (?)
// 2 = GETTIME_MINUTE
// 3 = GETTIME_HOUR
- if (gettime(3) % 2) {
+ if (gettime(3) % 3 == 1) {
+ // Summer: 2h15 day. 30m night.
+ // Winter: 2h day. 1h night.
if (season() == SUMMER && gettime(2) <= 30 || season() != WINTER && gettime(2) <= 15)
return 0;
return 1;