summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-19 10:41:16 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-19 10:41:16 -0300
commita053eac8c6b154b980a0dd00e6c4755b4b402570 (patch)
tree1ec68e51302962d6ba4ecd32f27d81d92267f3d0
parente7f4ce26bbce3712591673788448c063dea1054b (diff)
downloadserverdata-a053eac8c6b154b980a0dd00e6c4755b4b402570.tar.gz
serverdata-a053eac8c6b154b980a0dd00e6c4755b4b402570.tar.bz2
serverdata-a053eac8c6b154b980a0dd00e6c4755b4b402570.tar.xz
serverdata-a053eac8c6b154b980a0dd00e6c4755b4b402570.zip
Treasure on shovel should be calculated with rand2() :>
-rw-r--r--npc/items/shovel.txt2
1 files changed, 1 insertions, 1 deletions
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