1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

giant frogs are now allowed to jump 1 cell

This commit is contained in:
Zeno Rogue 2020-02-29 21:06:49 +01:00
parent 0c6b9aa696
commit 06e9808eb4

View File

@ -535,8 +535,9 @@ EX bool passable_for(eMonster m, cell *w, cell *from, flagtype extra) {
}
return !pseudohept(w) && passable(w, from, extra);
}
if(m == moFrog)
return (!from || from == w) ? passable(w, from, extra) : check_jump(from, w, extra, dummy) == 3;
if(m == moFrog) {
return isNeighbor1(from, w) ? passable(w, from, extra) : check_jump(from, w, extra, dummy) == 3;
}
if(m == moPhaser)
return isNeighbor1(from, w) ? passable(w, from, extra) : check_phase(from, w, extra, dummy) == 3;
if(m == moVaulter)