From 0ed3799f0ef8a797f6acb962bc69c268c3e709c6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Jul 2018 01:04:29 -0300 Subject: [skip ci] more compact reports of scattered items --- npc/items/shovel.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'npc/items/shovel.txt') diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index fb73c82ee..f58565975 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -34,15 +34,13 @@ 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; - freeloop(true); // DANGEROUS for (.@i = 0; .@i < .@amount; .@i++) shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), any_of(.@id)); freeloop(false); - debugmes "Scattered "+.@amount+" items on "+.@map$; + .@wtc = getarraysize($@WBT_Random_id); + debugmes "Scattered "+.@amount+" items on "+.@map$+". Currently scattered: "+.@wtc; return; } -- cgit v1.2.3-60-g2f50