a = hero.findMyCollectors()
b = len(a)
i=1
c= hero.findMyCollectors()[0]
while True:
if b < 5:
hero.spawnCollector()
if i % 2 ==0 and hero.fire >= 4:
hero.transform(hero.findMyCollectors()[0], "thief")
i += 1
else:
hero.transform(hero.findMyCollectors()[0], "runner")
i += 1
It’s don’t stop when its already 5 collector and keeps spawning, it only stop when the she has enough mana to cast spell .
b's value will never change, as it’s only being defined once outside of the while True loop. hero.findMyCollectors() is just collectors in that certain frame you called the method. So if you started with 3 collectors, b's value will be always 3 because it’s not being updated inside that loop.
It’s because transformed collectors aren’t registered as “collectors” anymore, hence you’re always left with less than 5 “untransformed-collectors”.
Just doing this code will work(Removing transformations)
while True:
b = len(hero.findMyCollectors())
if b < 5:
hero.spawnCollector()
Hi there, I recently saw that some runners (transformed collectors) are able to hold more than one fruit, as if it is a merger, but instead of merging, it holds them both. Here is a screenshot:
both fruits move with the runner as it goes to the spawning point
I believe that the merger was able to merge many fruits instead of only 2. Except that the runner doesn’t merge and shouldn’t hold many fruits, can he?