diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-14 20:03:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-14 20:03:27 -0300 |
commit | 6959823a2d6ba00ee54db5bbaabc5ad91ea7bdc5 (patch) | |
tree | c803d5d7cbc9990b1869799a5ce1218639cc850c /npc/items | |
parent | 891e03910f5416ed20669fb72fc8273d390853c6 (diff) | |
download | serverdata-6959823a2d6ba00ee54db5bbaabc5ad91ea7bdc5.tar.gz serverdata-6959823a2d6ba00ee54db5bbaabc5ad91ea7bdc5.tar.bz2 serverdata-6959823a2d6ba00ee54db5bbaabc5ad91ea7bdc5.tar.xz serverdata-6959823a2d6ba00ee54db5bbaabc5ad91ea7bdc5.zip |
Fix an infinity error on shovel (possible)
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/shovel.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 6ed100dff..ab794ebae 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -101,6 +101,7 @@ function script shovel_scatter { } } // Second check: Perhaps here is a rare, random ore? + freeloop(true); for (.@i = 0; .@i < getarraysize($@WBT_Random_id); .@i++) { if (!strcmp($@WBT_Random_map$[.@i], .@map$) && @@ -126,6 +127,7 @@ function script shovel_scatter { return 1; } } + freeloop(false); dispbottom l("Sadly, you found nothing but dirt."); return 0; } @@ -269,7 +271,8 @@ function PlayerIsTired { } if (@ShovelLastUsed + max(5, .@playertick) > .@tick) { - dispbottom lg("You are exhausted, you should rest a bit."); + .@time$=FuzzyTime(.@tick-(@ShovelLastUsed + max(5, .@playertick))); + dispbottom lg("You are exhausted, you should rest "+.@time$); return 1; } @ShovelLastUsed = .@tick; |