diff options
Diffstat (limited to 'npc/items/shovel.txt')
-rw-r--r-- | npc/items/shovel.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 4dc725249..fe96ea7a8 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -94,6 +94,12 @@ function script shovel_scatter { .@tick = gettimetick(1); .@playertick = .PlayerTiredTime - (readparam(bStr)/5) - (readparam(bVit)/10); + + // Dig and Bury more with Steel Shovel + if (countitem(SteelShovel)) { + .@playertick-=(.PlayerTiredTime*2)/3; + } + if (@ShovelLastUsed + max(5, .@playertick) > .@tick) { mes ""; mesc lg("You are exhausted, you should rest a bit."); @@ -168,11 +174,11 @@ function script shovel_scatter { // If ID is invalid, there's not enough items, it is an Iron Shovel, it is bound = Cannot bury // NOBODY bypass notrade check. (ITR_NONE is 0) if (.@id < 1) close; - if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) || + if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || .@id == SteelShovel || checkbound(.@id) || (!getiteminfo(.@id, ITEMINFO_TRADE)) ) { @ShovelLastUsed = 0; - if (.@id == IronShovel || checkbound(.@id)) + if (.@id == IronShovel || .@id == SteelShovel || checkbound(.@id)) mesc l("You cannot bury this item!"); else if (!getiteminfo(.@id, ITEMINFO_TRADE)) mesc l("This item is too precious, you cannot part with it!"); |