summaryrefslogtreecommitdiff
path: root/npc/functions/seasons.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/seasons.txt')
-rw-r--r--npc/functions/seasons.txt25
1 files changed, 14 insertions, 11 deletions
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index be49e80f7..a93cc78f9 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -49,6 +49,19 @@ function script SeasonControl {
} while (@menu != 3);
return;
}
+function script SeasonReload {
+ // Summer extra drops
+ if (season() == SUMMER && $@SEASON != SUMMER) {
+ donpcevent("#SeasonCore::OnSummerStart");
+ }
+ // Summer end delete drops
+ if (season() == AUTUMN && $@SEASON == SUMMER) {
+ donpcevent("#SeasonCore::OnSummerEnd");
+ }
+
+ $@SEASON=season();
+ return;
+}
000-0,0,0,0 script #SeasonCore NPC_HIDDEN,{
end;
@@ -117,17 +130,7 @@ OnSummerEnd:
OnInit:
OnHour00:
if ($@SEASON != season()) {
-
- // Summer extra drops
- if (season() == SUMMER && $@SEASON != SUMMER) {
- donpcevent("#SeasonCore::OnSummerStart");
- }
- // Summer end delete drops
- if (season() == AUTUMN && $@SEASON == SUMMER) {
- donpcevent("#SeasonCore::OnSummerEnd");
- }
-
- $@SEASON=season();
+ SeasonReload();
}
end;
}