Another step on the way to smarter monsters, again on the topic of

trap handling.

Changes:

  • intelligent monsters native to a branch (elves in Elven Halls etc.) will try not to step on traps
  • highly intelligent monsters have a chance to avoid traps as well
  • intelligent monsters use an estimate of the expected damage of a trap (simple randomized amount) to decide whether to cross it I've left the half hpmax check in as well because… um, for historical reasons?

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2831 c06c8d41-db1a-0410-9941-cceddc491573

Created by  j-p-e-g  on November 9, 2007
NW6P7VRKBFBQ2FRDZBXN7APJZPYC4SYCIA3MOOE2KZGX43IXNK2AC
Change contents