summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/item_db.conf6
-rw-r--r--npc/functions/seasons.txt7
2 files changed, 10 insertions, 3 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 509ffdae8..6f8c53809 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -2143,7 +2143,7 @@ item_db: (
Script: <"
@min = 90;
@max = 260;
- if (season() == SUMMER) {
+ if ($@SEASON == SUMMER) {
@min = 270;
@max = 780;
}
@@ -2168,7 +2168,7 @@ item_db: (
Script: <"
@min = 130;
@max = 307;
- if (season() == SUMMER) {
+ if ($@SEASON == SUMMER) {
@min = 390;
@max = 921;
}
@@ -2193,7 +2193,7 @@ item_db: (
Script: <"
@min = 165;
@max = 395;
- if (season() == SUMMER) {
+ if ($@SEASON == SUMMER) {
@min = 495;
@max = 1185;
}
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index 8b124e3bb..f893d2ed3 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -33,4 +33,11 @@ function script season {
return (.@current_month / 3 + .@is_after_season_day) % 4;
}
+000-0,0,0,0 script #SeasonCore NPC_HIDDEN,{
+ end;
+OnInit:
+OnHour00:
+ $@SEASON=season();
+ end;
+}