summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt11
1 files changed, 7 insertions, 4 deletions
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;