summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/016-7/main.txt2
-rw-r--r--npc/items/shovel.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/npc/016-7/main.txt b/npc/016-7/main.txt
index bb7090ab9..1609fa4ef 100644
--- a/npc/016-7/main.txt
+++ b/npc/016-7/main.txt
@@ -35,6 +35,8 @@ OnPirateDie:
end;
OnVictory:
+ if (rand2(50000) < readparam2(bLuk))
+ getitem PirateBandana, 1;
areatimer("016-7", 23, 25, 52, 35, 10, "#MarineShipAttack::OnReward");
end;
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index b29805283..7f5132a08 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -413,6 +413,7 @@ function script shovel_randomtreasure {
Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint);
if (rand2(400) == 136) .@id = EarthPowder; // 0.25% chance
+ if (rand2(2000) == 337) .@id = PirateBandana; // 0.05% chance
delitem TreasureMap, 1;
.@amount=any(1,1,2);
if (.@id == TreasureKey || .@id == CoinBag || .@id == StrangeCoin)
@@ -420,7 +421,8 @@ function script shovel_randomtreasure {
if (.@id == CasinoCoins)
.@amount+=rand2(0,8);
if (.@id == MercBoxA || .@id == AncientBlueprint ||
- .@id == GoldPieces || .@id == EarthPowder)
+ .@id == GoldPieces || .@id == EarthPowder ||
+ .@id == PirateBandana)
.@amount=1;
getitem .@id, .@amount;
ShovelQuests_AssignedMAP$="";