summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-26 15:34:59 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-26 15:34:59 -0200
commitb8b61eb06784aa9f7dcf18cfa13a61be5f68fa0c (patch)
treebfba970d979713d0b886c3c8af03802b532d870b /npc
parent0a7fee39a87b64a72c03c3ccdd0683c904a0d991 (diff)
downloadserverdata-b8b61eb06784aa9f7dcf18cfa13a61be5f68fa0c.tar.gz
serverdata-b8b61eb06784aa9f7dcf18cfa13a61be5f68fa0c.tar.bz2
serverdata-b8b61eb06784aa9f7dcf18cfa13a61be5f68fa0c.tar.xz
serverdata-b8b61eb06784aa9f7dcf18cfa13a61be5f68fa0c.zip
Ultra Rare treasures are 0% for the first 10 chests, and raise in 0.01% each
10 chests open, capped at 0.1% at 100 chests. No easy Shemagh, ha!
Diffstat (limited to 'npc')
-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);