1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

allies now prefer escaping unsafe locations to attacking

This commit is contained in:
Zeno Rogue 2019-07-28 11:10:13 +02:00
parent 9b8b2f638c
commit 9616b76848

View File

@ -5421,6 +5421,7 @@ int movevalue(eMonster m, cell *c, cell *c2, flagtype flags) {
}
else if(canAttack(c,m,c2,c2->monst,flags))
val =
(!passable_for(c->monst, c, NULL, P_MONSTER | P_MIRROR)) ? 100 :
(m == moPrincessArmed && isPrincess(c2->monst)) ? 14000 : // jealousy!
isActiveEnemy(c2,m) ? 12000 :
among(c2->monst, moSkeleton, moMetalBeast, moReptile, moTortoise, moSalamander, moTerraWarrior, moBrownBug) ? -400 :