diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-09-21 12:06:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-09-21 12:06:42 -0300 |
commit | d780fef4937fae3dd359b0f3c679ae0b856ecead (patch) | |
tree | 6f66f995389692b6724da9530f00c63f80f6ea41 /npc | |
parent | 9589cf3608d93e9a7384bcdc87db092fce42235c (diff) | |
download | serverdata-d780fef4937fae3dd359b0f3c679ae0b856ecead.tar.gz serverdata-d780fef4937fae3dd359b0f3c679ae0b856ecead.tar.bz2 serverdata-d780fef4937fae3dd359b0f3c679ae0b856ecead.tar.xz serverdata-d780fef4937fae3dd359b0f3c679ae0b856ecead.zip |
Okay, if Saulc doesn't likes night time, I'll just add another sun.
Problem solved Wesnoth-like. I'm sure Pyndragon approves!
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/weather.txt | 6 |
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; } } |