summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-02-21 04:28:07 +0100
committerReid <reidyaro@gmail.com>2016-02-21 04:28:07 +0100
commit68f81f11dba31f83569bfbb8dd2acd8659b7a6ed (patch)
treeddfb86cb67df595aeb3260116a6bcc00ef942cdc /npc/items
parent5c1c0981a0586c9a92b5f56b827e98520744f95f (diff)
downloadserverdata-68f81f11dba31f83569bfbb8dd2acd8659b7a6ed.tar.gz
serverdata-68f81f11dba31f83569bfbb8dd2acd8659b7a6ed.tar.bz2
serverdata-68f81f11dba31f83569bfbb8dd2acd8659b7a6ed.tar.xz
serverdata-68f81f11dba31f83569bfbb8dd2acd8659b7a6ed.zip
Reduce the time needed between the use of the shovel.
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 047ef038..4bf0d9a9 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -44,7 +44,8 @@
function PlayerIsTired {
.@tick = gettimetick(1);
- if (@ShovelLastUsed + max(10, .PlayerTiredTime - readparam(bStr)) > .@tick)
+ .@playertick = .PlayerTiredTime - readparam(bStr);
+ if (@ShovelLastUsed + max(4, .@playertick) > .@tick)
{
narrator 1,
l("You are exhausted, you should rest a bit.");
@@ -172,7 +173,7 @@ OnHour00:
end;
OnInit:
- .PlayerTiredTime = 60;
+ .PlayerTiredTime = 20;
AddDigRect("001-1", 172, 26, 200, 48);
end;