summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 7418105e9..b33cbbfae 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -34,6 +34,8 @@ function script shovel_scatter {
.@id=getarg(5);
.@amount=getarg(6,1);
+ .@wtc = getarraysize($@WBT_Random_id);
+ debugmes "Asked to scatter "+.@amount+" items. Currently scattered: "+.@wtc;
for (.@i = 0; .@i < .@amount; .@i++)
shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), any_of(.@id));
debugmes "Scattered "+.@amount+" items on "+.@map$;