summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNetSysFire <59517351+NetSysFire@users.noreply.github.com>2023-02-24 01:21:20 +0100
committerNetSysFire <59517351+NetSysFire@users.noreply.github.com>2023-02-24 01:21:20 +0100
commitfa52dc69f1efed20971c77b13383fd4b00ca9919 (patch)
treea8a575421cbf2578510e1eb8945ad0b9b97f1cd0
parent83b38f49c81390582b6bdc98ba2137983fd9df94 (diff)
downloadserverdata-fa52dc69f1efed20971c77b13383fd4b00ca9919.tar.gz
serverdata-fa52dc69f1efed20971c77b13383fd4b00ca9919.tar.bz2
serverdata-fa52dc69f1efed20971c77b13383fd4b00ca9919.tar.xz
serverdata-fa52dc69f1efed20971c77b13383fd4b00ca9919.zip
brace yourself
-rw-r--r--npc/functions/treasure.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 7ea9b3f74..d534f4cd3 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -49,15 +49,15 @@ function script TreasureBox {
.@count=1;
.@money=0;
// ultra rare
- if (.@t % 149 == 0 || .@r < .@ur_rate)
+ if (.@t % 149 == 0 || .@r < .@ur_rate) {
.@money=rand(1000, 2000);
.@loot=any(ScrollMagnusHealC, SaviorBlueprint, DivineApple, MercBoxE, ScrollSDragon, Shemagh, Shemagh, EverburnPowder, IridiumOre, PlatinumOre, SacredImmortalityPotion, MagicApple, ElixirOfLife);
// super rare
- else if (.@t % 50 == 0 || .@r < 200)
+ } else if (.@t % 50 == 0 || .@r < 200) {
.@money=rand(500, 750);
.@loot=any(MercBoxC, ScrollMagnusHealB, SnakeEgg, LachesisBrew, ArrowAmmoBox, GoldPieces, SilverGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, Lockpicks, EquipmentBlueprintC, AlchemyBlueprintC, AlchemyBlueprintD, AncientBlueprint, YerbaMate, JasmineTea, DeathPotion, SacredLifePotion, SacredManaPotion, BrokenWarpCrystal, PurificationPotion, GoldenApple);
// rare
- else if (.@r < 1600 || .@t == 0)
+ } else if (.@r < 1600 || .@t == 0) {
.@money=rand(100, 300);
.@loot=any(MercBoxB, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, PrecisionPotion, CoinBag, DodgePotion, MoveSpeedPotion, Dagger, Lockpicks, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea, Curshroom);
if (.@loot == Coal)
@@ -65,7 +65,7 @@ function script TreasureBox {
else if (.@loot == Lockpicks)
.@count=rand(1, 3);
// uncommon
- else if (.@r < 5200)
+ } else if (.@r < 5200) {
.@money=rand(20, 80);
.@loot=any(MercBoxA, SmokeGrenade, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, Lockpicks, Beer, StrangeCoin, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, DungeonMap, IcedBottle);
if (.@loot == Coal)
@@ -79,7 +79,7 @@ function script TreasureBox {
else if (.@loot == IcedBottle)
.@count=rand(2, 3);
// common
- else
+ } else {
.@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA);
if (.@loot == Coal || .@loot == EmptyBottle)
.@count=rand(1, 3);
@@ -89,6 +89,7 @@ function script TreasureBox {
.@count=rand(2, 4);
else if (.@loot == LeatherPatch)
.@count=rand(1, 2);
+ }
inventoryplace .@loot, .@count;
mesc l("You find %s x%d inside!", getitemlink(.@loot), .@count);