summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/treasure.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 16f607e30..4955e0087 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -27,7 +27,7 @@ function script TreasureBox {
if (!.@empty) {
TREASURE_OPEN=TREASURE_OPEN+1;
.@t=TREASURE_OPEN;
- .@r=rand(0,10000);
+ .@r=rand(0,10000)-readparam(bLuk);
// Select treasure list
// You're warranted an ultra rare (0.1%) every 149 open chests
@@ -38,7 +38,7 @@ function script TreasureBox {
.@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);
- else if (.@r < 1000)
+ else if (.@r < 1000 || .@t == 0)
.@loot=any(MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, Dagger, StrangeCoin, IronOre, CopperOre);
else if (.@r < 4000)
.@loot=any(Croconut, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, StrangeCoin);