diff options
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/shovel.txt | 14 |
1 files changed, 9 insertions, 5 deletions
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; } |