diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/shovel.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index f5639f163..7cf2ac213 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -404,6 +404,8 @@ function script shovel_getcity { return l("Hurnscald Mines"); if (.@a$ == "018-1") return l("Sincerity Island"); + if (.@a$ == "032-2") + return l("Tree Maze (Past Tulimshar)"); return .@a$; } @@ -414,17 +416,26 @@ function script shovel_randomtreasure { .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst, StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint); + // Legacy Tulimshar has different items + if (getmap() == "032-2") .@id = any(CoinBag, TreasureKey, GoldPieces, + Diamond,Ruby,Emerald, + Sapphire,Topaz,Amethyst, + StrangeCoin, MercBoxB, AncientBlueprint, + TulimWarpCrystal, AlchemyBlueprintC, + EarthPowder, MercBoxC, StrangeCoin); 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); + .@amount=any(1,1,2)+(getmap() == "032-2" ? 1 : 0); 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 || .@id == EarthPowder || - .@id == PirateBandana) + .@id == PirateBandana || .@id == MercBoxB || + .@id == MercBoxC || .@id == TulimWarpCrystal || + .@id == AlchemyBlueprintC) .@amount=1; getitem .@id, .@amount; ShovelQuests_AssignedMAP$=""; @@ -440,7 +451,11 @@ function script shovel_randomtreasure { } function script shovel_genrandtreasure { - .@m$=any("007-1", "011-1", "015-1", "018-1"); + if (getq(LoFQuest_EPISODE) >= 16) + .@m$=any("007-1", "011-1", "015-1", "018-1", "032-2", + "007-1", "011-1", "015-1", "018-1"); + else + .@m$=any("007-1", "011-1", "015-1", "018-1"); // Dangerous do { .@x=rand2(20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20); |