v2.2.1: fixed locked chests rarely spawning on caves quest entrance

This commit is contained in:
Evan Debenham
2023-10-19 16:37:37 -04:00
parent b0a77799ec
commit 26ca3549aa

View File

@@ -105,6 +105,15 @@ public class BlacksmithRoom extends StandardRoom {
}
}
@Override
public boolean canPlaceCharacter(Point p, Level l) {
if (l.map[l.pointToCell(p)] == Terrain.EXIT){
return false;
} else {
return super.canPlaceCharacter(p, l);
}
}
public static class QuestEntrance extends CustomTilemap {
{