summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/treasure.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 303c9dba6..cdafc960f 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -59,7 +59,7 @@ function script TreasureBox {
if (.@loot == SnakeEgg)
.@count=rand(2, 6);
else if (.@loot == Lockpicks)
- .@count=rand(3, 6);
+ .@count=rand2(3, 6);
else if (.@loot == DeathPotion)
.@count=rand(2, 5);
// rare
@@ -69,7 +69,7 @@ function script TreasureBox {
if (.@loot == Coal)
.@count=rand(6, 10);
else if (.@loot == Lockpicks)
- .@count=rand(1, 3);
+ .@count=rand2(1, 3);
else if (.@loot == IronOre)
.@count=rand(2, 5);
else if (.@loot == CopperOre)
@@ -91,13 +91,13 @@ function script TreasureBox {
else if (.@loot == ScrollSCave)
.@count=rand(2, 5);
else if (.@loot == Beer)
- .@count=rand(2, 4);
+ .@count=rand2(2, 4);
else if (.@loot == WoodenLog)
- .@count=rand(1, 3);
+ .@count=rand2(1, 3);
else if (.@loot == SmallMushroom)
.@count=rand(5, 8);
else if (.@loot == IcedBottle) {
- .@count=rand(2, 3);
+ .@count=(season() == WINTER ? rand2(2, 3) : rand2(1, 3));
if (season() == SUMMER)
dispbottom l("Just the right thing to cool down right now!");
}
@@ -105,13 +105,13 @@ function script TreasureBox {
} else {
.@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, MaggotSlime, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA, ScrollSCave, ScrollSMaggot);
if (.@loot == Coal || .@loot == EmptyBottle)
- .@count=rand(1, 3);
+ .@count=rand2(1, 3);
else if (.@loot == Chagashroom || .@loot == Plushroom)
.@count=rand(10, 20);
else if (.@loot == RawLog || .@loot == EmptyBox)
.@count=rand(2, 4);
else if (.@loot == LeatherPatch)
- .@count=rand(1, 2);
+ .@count=rand2(1, 2);
else if (.@loot == ScrollSMaggot)
.@count=rand(1, 5);
else if (.@loot == MaggotSlime) {