Hi guys, i have a problem in this lvl, i dont understand why the character picking always more then 25 gold and after only building decoy, im losing time with it and cannot complete quest in time, in previous lvl it pick exactly 25 gold with that gold, i just do not understand…
Here is code:
var gold = 0;
var decoysBuilt = 0;
loop {
var coin = this.findNearestItem();
if (coin){
var pos = coin.pos;
var x = pos.x;
var y = pos.y;
this.moveXY(x, y);
gold = gold + coin.value;
}