v3.3.0: fixed toxic gas rooms marking their entrance as char placeable

This commit is contained in:
Evan Debenham
2025-11-19 12:27:06 -05:00
parent 47ddb75f44
commit 29d540a616

View File

@@ -111,6 +111,9 @@ public class ToxicGasRoom extends SpecialRoom {
@Override
public boolean canPlaceCharacter(Point p, Level l) {
if (!super.canPlaceCharacter(p, l)) {
return false;
}
Blob gas = l.blobs.get(ToxicGas.class);
return gas == null || gas.volume == 0 || gas.cur[l.pointToCell(p)] == 0;
}