mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
movei from cellwalker, old empathyMove removed
This commit is contained in:
parent
6d44105fef
commit
9521b622e1
@ -1385,9 +1385,9 @@ EX namespace mirror {
|
||||
continue;
|
||||
}
|
||||
c->monst = moMimic;
|
||||
moveMonster(c2, c, m.second.spin);
|
||||
moveMonster(m.second);
|
||||
c2->monst = moNone;
|
||||
empathyMove(c, c2, neighborId(c2, c));
|
||||
empathyMove(m.second);
|
||||
m.second = cw2;
|
||||
}
|
||||
}
|
||||
|
2
game.cpp
2
game.cpp
@ -5852,7 +5852,7 @@ EX void movegolems(flagtype flags) {
|
||||
if(m == moFriendlyGhost) c2->stuntime = 1;
|
||||
}
|
||||
|
||||
empathyMove(c, c2, dir);
|
||||
empathyMove(mi);
|
||||
}
|
||||
DEBB(DF_TURN, ("other"));
|
||||
}
|
||||
|
@ -460,6 +460,7 @@ struct movei {
|
||||
else t = s->move(d);
|
||||
}
|
||||
movei(cell *_s, cell *_t, int _d) : s(_s), t(_t), d(_d) {}
|
||||
movei(cellwalker cw) : s(cw.at), t(cw.cpeek()), d(cw.spin) {}
|
||||
movei rev() const { return movei(t, s, rev_dir_or(d)); }
|
||||
int dir_or(int x) const { return proper() ? d : x; }
|
||||
int rev_dir_or(int x) const { return proper() ? s->c.spin(d) : x; }
|
||||
|
4
orbs.cpp
4
orbs.cpp
@ -49,10 +49,6 @@ EX void drainOrb(eItem it, int target IS(0)) {
|
||||
if(items[it] > target) useupOrb(it, items[it] - target);
|
||||
}
|
||||
|
||||
EX void empathyMove(cell *c, cell *cto, int dir) {
|
||||
empathyMove(movei(c, cto, dir)); // to erase
|
||||
}
|
||||
|
||||
EX void empathyMove(const movei& mi) {
|
||||
if(!items[itOrbEmpathy]) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user