summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-1/ishi.txt4
-rw-r--r--npc/items/shovel.txt4
2 files changed, 4 insertions, 4 deletions
diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt
index a4cbb5a9c..ab463ac40 100644
--- a/npc/003-1/ishi.txt
+++ b/npc/003-1/ishi.txt
@@ -147,12 +147,12 @@ L_Items:
//debugmes l("Check @@ <= @@", @lucky, @Rares[.@b+1]);
if (.@b == 0)
@control = 0;
- if(@lucky >= (@control + 1) && @lucky <= @control + atoi(@Rares[.@b+1]))
+ if(@lucky >= (@control + 1) && @lucky <= @control + (@Rares[.@b+1]))
{
.@lucked=1;
.@reward = @Rares[.@b];
}
- @control = @control + atoi(@Rares[.@b+1]);
+ @control = @control + (@Rares[.@b+1]);
}
}
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 28c9b87e0..8722cdb0e 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -411,14 +411,14 @@ function script shovel_getcity {
function script shovel_randomtreasure {
.@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces,
Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
- StrangeCoin, CasinoCoins, MercBoxA);
+ StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint);
delitem TreasureMap, 1;
.@amount=any(1,1,2);
if (.@id == TreasureKey || .@id == CoinBag)
.@amount+=any(0,1,0,1,2);
if (.@id == StrangeCoin || .@id == CasinoCoins)
.@amount+=rand2(0,8);
- if (.@id == MercBoxA)
+ if (.@id == MercBoxA || .@id == AncientBlueprint)
.@amount=1;
getitem .@id, .@amount;
ShovelQuests_AssignedMAP$="";