From 1c78fd9718d47b211868dcdd1c751e53b840b925 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 8 Jul 2018 21:43:45 -0300 Subject: Following gumi's lead, GMs can use Shovel with no restriction --- npc/items/shovel.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'npc/items') diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index eb1d88cbe..f17a554f8 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -84,12 +84,15 @@ function script shovel_scatter { } function PlayerIsTired { + // GMs can do this in an unrestricted way + if (is_gm()) + return 0; + .@tick = gettimetick(1); .@playertick = .PlayerTiredTime - (readparam(bStr)/5); - if (@ShovelLastUsed + max(5, .@playertick) > .@tick) - { - narrator S_FIRST_BLANK_LINE, - lg("You are exhausted, you should rest a bit."); + if (@ShovelLastUsed + max(5, .@playertick) > .@tick) { + mes ""; + mesc lg("You are exhausted, you should rest a bit."); return 1; } @ShovelLastUsed = .@tick; -- cgit v1.2.3-60-g2f50