Statistics about CodeCombat


#1

What are the names of the potions(i.e. health-potion-m), enemies, and their health, immunities, etc. Any help would be very welcome. It would really help me in ladder games like Kithguard Brawl.

Thanks!

P.S. This is what I have for now in Python:
while True:
enemy = hero.findNearest(hero.findEnemies())
castable = hero.canCast(“chain-lightning”, enemy)
ready = hero.isReady(“cleave”)
item = hero.findNearest(hero.findItems())
health = hero.health
if health < hero.maxHealth:
if item:
hero.moveXY(item.pos.x, item.pos.y)
elif health > hero.maxHealth/4:
if enemy:
if ready:
hero.cleave(enemy)
elif castable:
hero.cast(“chain-lightning”, enemy)
else:
hero.attack(enemy)
else:
hero.shield()
elif enemy:
if ready:
hero.cleave(enemy)
elif castable:
hero.cast(“chain-lightning”, enemy)
else:
hero.attack(enemy)
else:
hero.shield()


#2

@Coder I don’t know all the names yet, but you can always use hero.say(item.id) to find out. Try hero.say(item.type) as well as they might all be of the same type.


#3

Thanks.:slight_smile: