From d780fef4937fae3dd359b0f3c679ae0b856ecead Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 21 Sep 2018 12:06:42 -0300 Subject: Okay, if Saulc doesn't likes night time, I'll just add another sun. Problem solved Wesnoth-like. I'm sure Pyndragon approves! --- npc/functions/weather.txt | 6 +++--- 1 file 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; } } -- cgit v1.2.3-60-g2f50