summaryrefslogtreecommitdiff
path: root/npc/functions/treasure.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/treasure.txt')
-rw-r--r--npc/functions/treasure.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 75fd3945c..4b2cd4b6d 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -26,7 +26,8 @@ function script TreasureBox {
// You're warranted an ultra rare (0.1%) every 149 open chests
// You're warranted a super rare (1%) every 50 open chests
// There's also rares (10%), uncommons (40%) and commons (60%)
- if (.@t % 149 == 0 || .@r < 10)
+ .@ur_rate=min(10, (TREASURE_OPEN/10));
+ if (.@t % 149 == 0 || .@r < .@ur_rate)
.@loot=any(AtroposMixture, GoldenApple, DivineApple, MercBoxA, SilverGift, Shemagh, EverburnPowder, IridiumOre, PlatinumOre);
else if (.@t % 50 == 0 || .@r < 100)
.@loot=any(Grenade, SnakeEgg, LachesisBrew, ArrowAmmoBox, CoinBag, BronzeGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder);