1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 20:37:56 +00:00

mirrors now flip Alchemist Lab colors (may be a bit unpredictable in minimal quotient)

This commit is contained in:
Zeno Rogue
2022-04-26 14:42:07 +02:00
parent 49d7ab3ed3
commit 7adb3dac5a
5 changed files with 39 additions and 15 deletions

View File

@@ -89,9 +89,16 @@ EX bool strictlyAgainstGravity(cell *w, cell *from, bool revdir, flagtype flags)
}
EX bool anti_alchemy(cell *w, cell *from) {
bool alch1 = w->wall == waFloorA && from && from->wall == waFloorB && !w->item && !from->item;
alch1 |= w->wall == waFloorB && from && from->wall == waFloorA && !w->item && !from->item;
return alch1;
if(!from) return false;
if(!isAlchAny(w)) return false;
if(!isAlchAny(from)) return false;
if(w->item) return false;
if(from->item) return false;
if(!nonorientable) return w->wall != from->wall;
forCellIdEx(c1, i, w)
if(c1 == from && (w->c.mirror(i) ? w->wall != from->wall : w->wall == from->wall))
return false;
return true;
}
#if HDR