summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/treasure.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 5de1c19bc..dcf47a269 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -90,7 +90,7 @@ function script TreasureBox {
.@count=rand(2, 3);
// common
} else {
- .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA);
+ .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, MaggotSlime, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA);
if (.@loot == Coal || .@loot == EmptyBottle)
.@count=rand(1, 3);
else if (.@loot == Chagashroom || .@loot == Plushroom)
@@ -99,6 +99,10 @@ function script TreasureBox {
.@count=rand(2, 4);
else if (.@loot == LeatherPatch)
.@count=rand(1, 2);
+ else if (.@loot == MaggotSlime) {
+ .@count=rand(30, 40);
+ dispbottom l("Eww! Some maggots got squashed when the chest was opened!");
+ }
}
inventoryplace .@loot, .@count;