mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
friends prefer to attack hedgehog warriors/pikemen, rather than making other moves
This commit is contained in:
parent
771fe3458d
commit
215ed1f338
@ -1553,11 +1553,14 @@ EX int movevalue(eMonster m, cell *c, int dir, flagtype flags) {
|
|||||||
#endif
|
#endif
|
||||||
val = 4000;
|
val = 4000;
|
||||||
|
|
||||||
|
int tk = tkills();
|
||||||
changes.init(true);
|
changes.init(true);
|
||||||
moveMonster(mi);
|
moveMonster(mi);
|
||||||
|
int tk2 = tkills();
|
||||||
bool b = monstersnear(mi.t, m);
|
bool b = monstersnear(mi.t, m);
|
||||||
changes.rollback();
|
changes.rollback();
|
||||||
if(b) val = 50;
|
if(b) val = 50;
|
||||||
|
else if(tk2 > tk) val += 1000 + 200 * (tk2 - tk);
|
||||||
}
|
}
|
||||||
else if(passable_for(m, c2, c, P_DEADLY)) val = -1100;
|
else if(passable_for(m, c2, c, P_DEADLY)) val = -1100;
|
||||||
else val = -1750;
|
else val = -1750;
|
||||||
|
Loading…
Reference in New Issue
Block a user