v3.3.0: fixed some inconsistencies on regular vs. unlocked doors

This commit is contained in:
Evan Debenham
2025-11-04 11:11:36 -05:00
parent 94bd1370d7
commit 31e992ec10
4 changed files with 11 additions and 10 deletions

View File

@@ -258,16 +258,17 @@ public abstract class RegularPainter extends Painter {
d.type = Room.Door.Type.UNLOCKED;
}
//entrance doors on floor 1 are hidden during tutorial
//entrance doors on floor 2 are hidden if the player hasn't picked up 2nd guidebook page
if (r.isEntrance() || n.isEntrance()){
if ((Dungeon.depth == 1 && SPDSettings.intro())
}
//unlocked entrance doors on floor 1 are hidden during tutorial
//unlocked entrance doors on floor 2 are hidden if the player hasn't picked up 2nd guidebook page
if (d.type == Room.Door.Type.UNLOCKED && (r.isEntrance() || n.isEntrance())){
if ((Dungeon.depth == 1 && SPDSettings.intro())
|| (Dungeon.depth == 2 && !Document.ADVENTURERS_GUIDE.isPageFound(Document.GUIDE_SEARCHING))) {
d.type = Room.Door.Type.HIDDEN;
}
d.type = Room.Door.Type.HIDDEN;
}
}
switch (d.type) {
case EMPTY:
l.map[door] = Terrain.EMPTY;

View File

@@ -247,7 +247,7 @@ public class CrystalPathRoom extends SpecialRoom {
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
entrance().set( Door.Type.UNLOCKED );
entrance().set( Door.Type.REGULAR );
}

View File

@@ -45,7 +45,7 @@ public class DemonSpawnerRoom extends SpecialRoom {
int cy = c.y;
Door door = entrance();
door.set(Door.Type.UNLOCKED);
door.set(Door.Type.UNLOCKED); //cannot be hidden randomly under any circumstance
DemonSpawner spawner = new DemonSpawner();
spawner.pos = cx + cy * level.width();

View File

@@ -105,7 +105,7 @@ public class ToxicGasRoom extends SpecialRoom {
level.addItemToSpawn(new PotionOfPurity());
entrance().set( Door.Type.UNLOCKED );
entrance().set( Door.Type.REGULAR );
}