diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-08 21:43:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-08 21:43:45 -0300 |
commit | 1c78fd9718d47b211868dcdd1c751e53b840b925 (patch) | |
tree | 6cd26ef86010144908ac86d26f9858e46d820d81 /npc | |
parent | b5a275bf9c9f98221045acddb9c3306b7ac5a116 (diff) | |
download | serverdata-1c78fd9718d47b211868dcdd1c751e53b840b925.tar.gz serverdata-1c78fd9718d47b211868dcdd1c751e53b840b925.tar.bz2 serverdata-1c78fd9718d47b211868dcdd1c751e53b840b925.tar.xz serverdata-1c78fd9718d47b211868dcdd1c751e53b840b925.zip |
Following gumi's lead, GMs can use Shovel with no restriction
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/shovel.txt | 11 |
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; |