From 0f8c0a64e2f13e480708dc0079f247475f7edd61 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 30 Jun 2018 23:56:14 -0300 Subject: Fix a bug, and raise dig/bury cooldown --- npc/items/shovel.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/items') diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index ec027fb7d..fd74ed262 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -47,7 +47,7 @@ function PlayerIsTired { .@tick = gettimetick(1); .@playertick = .PlayerTiredTime - (readparam(bStr)/5); - if (@ShovelLastUsed + max(4, .@playertick) > .@tick) + if (@ShovelLastUsed + max(5, .@playertick) > .@tick) { narrator S_FIRST_BLANK_LINE, lg("You are exhausted, you should rest a bit."); @@ -92,6 +92,7 @@ .@id = requestitem(); if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel) { + @ShovelLastUsed = 0; if (.@id == IronShovel) mesc l("Uh... You can't bury your own shovel!"); else @@ -179,7 +180,7 @@ OnHour00: end; OnInit: - .PlayerTiredTime = 20; + .PlayerTiredTime = 25; // You can bury & dig on all mines AddDigRect("007-1", 20, 20, 180, 180); AddDigRect("011-1", 20, 20, 180, 180); -- cgit v1.2.3-70-g09d2