diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-30 23:56:14 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-30 23:56:14 -0300 |
commit | 0f8c0a64e2f13e480708dc0079f247475f7edd61 (patch) | |
tree | 1cc97946de914aa2688a64501f2e8bcb388cfbd5 /npc/items | |
parent | e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494 (diff) | |
download | serverdata-0f8c0a64e2f13e480708dc0079f247475f7edd61.tar.gz serverdata-0f8c0a64e2f13e480708dc0079f247475f7edd61.tar.bz2 serverdata-0f8c0a64e2f13e480708dc0079f247475f7edd61.tar.xz serverdata-0f8c0a64e2f13e480708dc0079f247475f7edd61.zip |
Fix a bug, and raise dig/bury cooldown
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/shovel.txt | 5 |
1 files changed, 3 insertions, 2 deletions
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); |