1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

shmup:: collect items when bumping into them in a boat

This commit is contained in:
Zeno Rogue 2019-07-30 13:03:28 +02:00
parent 5c221d72b3
commit a95eb81b33

View File

@ -1929,6 +1929,7 @@ void movePlayer(monster *m, int delta) {
}
else if(m->inBoat && !isWateryOrBoat(c2) && passable(c2, m->base, P_ISPLAYER | P_MIRROR | reflectflag)) {
if(boatGoesThrough(c2) && markOrb(itOrbWater)) {
collectItem(c2);
c2->wall = isIcyLand(m->base) ? waLake : waSea;
}
else {