summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 6fed767e6..5fac70940 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -119,10 +119,12 @@
.@id = requestitem();
- if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel) {
+ if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) || !getiteminfo(.@id, ITEMINFO_MAXCHANCE)) {
@ShovelLastUsed = 0;
- if (.@id == IronShovel)
- mesc l("Uh... You can't bury your own shovel!");
+ if (.@id == IronShovel || checkbound(.@id))
+ mesc l("You cannot bury this item!");
+ else if (!getiteminfo(.@id, ITEMINFO_MAXCHANCE))
+ mesc l("This item is too precious, you cannot part with it!");
else
mesc l("You give up.");
return;