From 408e29d4f61586b4cc8a5df98da3ab06ecd043b6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 18 May 2019 14:11:08 -0300 Subject: [skip ci] mark better day/night duration on different seasons --- npc/functions/weather.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index 74824d5f3..4281d7746 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -17,8 +17,9 @@ function script is_night { // 2 = GETTIME_MINUTE // 3 = GETTIME_HOUR if (gettime(3) % 3 == 1) { - // Summer: 2h15 day. 30m night. - // Winter: 2h day. 1h night. + // Summer: 2h30 day. 30m night. + // Others: 2h15 day. 45m night. + // Winter: 2h day. 1h night. if (season() == SUMMER && gettime(2) <= 30 || season() != WINTER && gettime(2) <= 15) return 0; return 1; -- cgit v1.2.3-70-g09d2