From 7d77a7f30a50d2ae49e471724459278865427b3f Mon Sep 17 00:00:00 2001 From: NetSysFire <59517351+NetSysFire@users.noreply.github.com> Date: Mon, 27 Feb 2023 22:47:31 +0100 Subject: maggot slime --- npc/functions/treasure.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50