summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-01 20:06:13 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-01 20:06:13 -0300
commitd42c5abada38ebeea92e2109b8c1b6aac1a167e5 (patch)
tree5e3b7648bb500d0593f444c5a59123dca3e21a33 /npc/functions/weather.txt
parent06d3d39041b2b3aa02c4db017328f651d9c95cd9 (diff)
downloadserverdata-d42c5abada38ebeea92e2109b8c1b6aac1a167e5.tar.gz
serverdata-d42c5abada38ebeea92e2109b8c1b6aac1a167e5.tar.bz2
serverdata-d42c5abada38ebeea92e2109b8c1b6aac1a167e5.tar.xz
serverdata-d42c5abada38ebeea92e2109b8c1b6aac1a167e5.zip
Special() biom: May have fog instead of monster attack.
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 437b84400..ec161fa20 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -89,6 +89,10 @@ OnInit:
htput(.wcore, "020-1", "iceland");
htput(.wcore, "022-1", "iceland");
+ // Special
+ htput(.wcore, "011-3", "special");
+
+
debugmes "[Weather.sys] Total Maps = " + htsize(.wcore);
// No "end" here, so server starts with weather
OnMinute00:
@@ -136,6 +140,19 @@ OnMinute45:
else if (.@r < 300)
.@mk=.@mk|MASK_SNOW;
+ } else if (.@type$ == "special") {
+ // This biom is too hot for snow. But it may rain.
+ if (.@r < 300)
+ .@mk=.@mk|MASK_RAIN;
+
+ // Fog? (Evil Sanctum and Monster Attack) Or Sandstorm?
+ if (.@r % 4 == 2)
+ .@mk=.@mk|MASK_EVILSANCTUM;
+ else if (.@r % 4 == 1)
+ .@mk=.@mk|MASK_SANDSTORM;
+ else if (.@r % 4 == 3)
+ .@mk=.@mk|MASK_MATTACK;
+
} else {
debugmes "Warning warning, blame Saulc! Weather system error on map "+.@key$;
announce("ERROR BLAME SAULC! WEATHER SYSTEM CORRUPTED.", bc_all);