TAEB / TAEB-AI-Behavioral

behavioral AI for TAEB
http://taeb.github.io
5 stars 4 forks source link

Melee should be smarter about engaging monsters #29

Open doy opened 11 years ago

doy commented 11 years ago

We really shouldn't be running at a mumak to attack it in melee if we only have 40 hp. We need to have some way to determine whether attempting to melee a monster makes sense. Currently, the only checks we have are in TAEB::World::Monster::is_meleeable, which prevents attacking floating eyes and such.

doy commented 11 years ago

This should take into account things like nymphs too, which don't have a damaging attack, but which we should also avoid meleeing.