summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt4
1 files changed, 3 insertions, 1 deletions
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$="";