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:
parent
9b8b2f638c
commit
9616b76848
1
game.cpp
1
game.cpp
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user