From a053eac8c6b154b980a0dd00e6c4755b4b402570 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 19 Jun 2019 10:41:16 -0300 Subject: Treasure on shovel should be calculated with rand2() :> --- npc/items/shovel.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 3c6e23b88..6ed100dff 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -48,7 +48,7 @@ function script shovel_scatter { do { freeloop(true); // DANGEROUS for (.@i = 0; .@i < .@amount; .@i++) - shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), getarg(rand(getargcount()-6)+6)); + shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), getarg(rand2(getargcount()-6)+6)); freeloop(false); .@wtc = getarraysize($@WBT_Random_id); // wtc - current -- cgit v1.2.3-60-g2f50