diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-21 12:05:32 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-21 12:05:32 -0200 |
commit | 744088512d061746dd10f9a607b04f115dbdfd68 (patch) | |
tree | c3f0e1c84601a96484f1cc1bf1162c6aa5d87a40 /npc/functions/weather.txt | |
parent | a972269de0490e06d0cb26e0b013d8a05942e76b (diff) | |
download | serverdata-744088512d061746dd10f9a607b04f115dbdfd68.tar.gz serverdata-744088512d061746dd10f9a607b04f115dbdfd68.tar.bz2 serverdata-744088512d061746dd10f9a607b04f115dbdfd68.tar.xz serverdata-744088512d061746dd10f9a607b04f115dbdfd68.zip |
Fix the second sun. Routine work, don't worry, no chances of it falling (again?)
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r-- | npc/functions/weather.txt | 4 |
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; |