From 70df6ef331b2cfed0251fcc447dfef557f0fb91f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Jul 2018 00:57:32 -0300 Subject: [skip ci] debug debug debug --- npc/items/shovel.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'npc/items/shovel.txt') 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$; -- cgit v1.2.3-60-g2f50