???
# We are field testing a new battle unit: the decoy.
# Build 4 decoys, then report the total to Naria.
# Each decoy costs 25 gold. Use the Quartz Sense Stone
# to know when you have more than 25 gold with self.gold.
# Keep a count of decoys you built as you go along.
# Break out of the loop when you have built 4.
decoysBuilt = 0
loop:
item = self.findNearest(self.findItems())
if self.gold < 25 :
self.moveXY(item.pos.x, item.pos.y)
else:
self.buildXY("decoy", self.pos.x - 2, self.pos.y -2)
decoysBuilt = decoysBuilt+1
if decoysBuilt < 4 :
break
self.say("Done building decoys!")
# Go to Naria and say how many decoys you built.
self.moveXY(14, 36)