From 529e1757ccdf2627e6b47ce2703901f753e78381 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 23 Jun 2020 22:45:15 -0300 Subject: You have now 0.25% chance to unearth an [Earth Powder] from a Treasure Map --- npc/items/shovel.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index bf7edcaa7..76e5d61bf 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -412,13 +412,15 @@ function script shovel_randomtreasure { .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst, StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint); + if (rand2(400) == 136) .@id = EarthPowder; // 0.25% chance delitem TreasureMap, 1; .@amount=any(1,1,2); if (.@id == TreasureKey || .@id == CoinBag || .@id == StrangeCoin) .@amount+=any(0,1,0,1,2); if (.@id == CasinoCoins) .@amount+=rand2(0,8); - if (.@id == MercBoxA || .@id == AncientBlueprint || .@id == GoldPieces) + if (.@id == MercBoxA || .@id == AncientBlueprint || + .@id == GoldPieces || .@id == EarthPowder) .@amount=1; getitem .@id, .@amount; ShovelQuests_AssignedMAP$=""; -- cgit v1.2.3-60-g2f50