From e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 30 Jun 2018 23:50:48 -0300 Subject: You can dig & bury on all mines --- npc/items/shovel.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'npc/items') diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index f510d2f1b..ec027fb7d 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -96,15 +96,16 @@ mesc l("Uh... You can't bury your own shovel!"); else mesc l("You give up."); - return -6; + return; } .@amount = 1; - if (countitem(.@id) > 1) - { + if (countitem(.@id) > 1) { narrator S_FIRST_BLANK_LINE | S_LAST_BLANK_LINE, l("Amount?"); - input .@amount, 1, countitem(.@id); + input .@amount, 0, countitem(.@id); } + if (.@amount == 0 || .@amount > countitem(.@id)) + return; getmapxy(.@map$, .@x, .@y, 0); delitem .@id, .@amount; @@ -179,7 +180,10 @@ OnHour00: OnInit: .PlayerTiredTime = 20; - AddDigRect("001-1", 172, 26, 200, 48); + // You can bury & dig on all mines + AddDigRect("007-1", 20, 20, 180, 180); + AddDigRect("011-1", 20, 20, 180, 180); + AddDigRect("015-1", 20, 20, 180, 180); end; } -- cgit v1.2.3-60-g2f50