mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 11:30:09 +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))
|
else if(canAttack(c,m,c2,c2->monst,flags))
|
||||||
val =
|
val =
|
||||||
|
(!passable_for(c->monst, c, NULL, P_MONSTER | P_MIRROR)) ? 100 :
|
||||||
(m == moPrincessArmed && isPrincess(c2->monst)) ? 14000 : // jealousy!
|
(m == moPrincessArmed && isPrincess(c2->monst)) ? 14000 : // jealousy!
|
||||||
isActiveEnemy(c2,m) ? 12000 :
|
isActiveEnemy(c2,m) ? 12000 :
|
||||||
among(c2->monst, moSkeleton, moMetalBeast, moReptile, moTortoise, moSalamander, moTerraWarrior, moBrownBug) ? -400 :
|
among(c2->monst, moSkeleton, moMetalBeast, moReptile, moTortoise, moSalamander, moTerraWarrior, moBrownBug) ? -400 :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user