summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-18 14:11:08 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-18 14:11:08 -0300
commit408e29d4f61586b4cc8a5df98da3ab06ecd043b6 (patch)
treefd578cb70a6f9963198311d6f00ce3ceb502b563 /npc
parent066199a1dc17ca6a54ebc808d6cde09bfb3bf115 (diff)
downloadserverdata-408e29d4f61586b4cc8a5df98da3ab06ecd043b6.tar.gz
serverdata-408e29d4f61586b4cc8a5df98da3ab06ecd043b6.tar.bz2
serverdata-408e29d4f61586b4cc8a5df98da3ab06ecd043b6.tar.xz
serverdata-408e29d4f61586b4cc8a5df98da3ab06ecd043b6.zip
[skip ci] mark better day/night duration on different seasons
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/weather.txt5
1 files changed, 3 insertions, 2 deletions
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;