v3.3.0: fixed some inconsistencies on regular vs. unlocked doors
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -105,7 +105,7 @@ public class ToxicGasRoom extends SpecialRoom {
|
||||
|
||||
level.addItemToSpawn(new PotionOfPurity());
|
||||
|
||||
entrance().set( Door.Type.UNLOCKED );
|
||||
entrance().set( Door.Type.REGULAR );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user