From 61e6ab6364da84b58d14a38bcfc8cd1d374c7835 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 Jun 2019 22:09:50 -0300 Subject: Reorder stuff internally, no effect whatsoever. --- npc/items/shovel.txt | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 9cd36ac5b..9537ef3da 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -331,22 +331,6 @@ OnHour00: } -function script shovel_randomtreasure { - .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, - Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst); - delitem TreasureMap, 1; - .@amount=any(1,1,2); - getitem .@id, .@amount; - ShovelQuests_AssignedMAP$=""; - ShovelQuests_AssignedX=0; - ShovelQuests_AssignedY=0; - - narrator S_FIRST_BLANK_LINE, - l("You found something!"), - l("It's @@ @@.", .@amount, getitemname(.@id)); - return; -} - function script shovel_addquest { if (getargcount() < 4) { @@ -401,6 +385,24 @@ function script shovel_getcity { return .@a$; } +// [Treasure Map] functions + +function script shovel_randomtreasure { + .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, + Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst); + delitem TreasureMap, 1; + .@amount=any(1,1,2); + getitem .@id, .@amount; + ShovelQuests_AssignedMAP$=""; + ShovelQuests_AssignedX=0; + ShovelQuests_AssignedY=0; + + narrator S_FIRST_BLANK_LINE, + l("You found something!"), + l("It's @@ @@.", .@amount, getitemname(.@id)); + return; +} + function script shovel_genrandtreasure { .@m$=any_of("007-1", "011-1", "015-1", "018-1"); // Dangerous -- cgit v1.2.3-70-g09d2