v3.3.0: fixed some inconsistencies on regular vs. unlocked doors
This commit is contained in:
+8
-7
@@ -258,16 +258,17 @@ public abstract class RegularPainter extends Painter {
|
|||||||
d.type = Room.Door.Type.UNLOCKED;
|
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()){
|
//unlocked entrance doors on floor 1 are hidden during tutorial
|
||||||
if ((Dungeon.depth == 1 && SPDSettings.intro())
|
//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))) {
|
|| (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) {
|
switch (d.type) {
|
||||||
case EMPTY:
|
case EMPTY:
|
||||||
l.map[door] = Terrain.EMPTY;
|
l.map[door] = Terrain.EMPTY;
|
||||||
|
|||||||
+1
-1
@@ -247,7 +247,7 @@ public class CrystalPathRoom extends SpecialRoom {
|
|||||||
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
|
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
|
||||||
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
|
level.addItemToSpawn( new CrystalKey( Dungeon.depth ) );
|
||||||
|
|
||||||
entrance().set( Door.Type.UNLOCKED );
|
entrance().set( Door.Type.REGULAR );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ public class DemonSpawnerRoom extends SpecialRoom {
|
|||||||
int cy = c.y;
|
int cy = c.y;
|
||||||
|
|
||||||
Door door = entrance();
|
Door door = entrance();
|
||||||
door.set(Door.Type.UNLOCKED);
|
door.set(Door.Type.UNLOCKED); //cannot be hidden randomly under any circumstance
|
||||||
|
|
||||||
DemonSpawner spawner = new DemonSpawner();
|
DemonSpawner spawner = new DemonSpawner();
|
||||||
spawner.pos = cx + cy * level.width();
|
spawner.pos = cx + cy * level.width();
|
||||||
|
|||||||
+1
-1
@@ -105,7 +105,7 @@ public class ToxicGasRoom extends SpecialRoom {
|
|||||||
|
|
||||||
level.addItemToSpawn(new PotionOfPurity());
|
level.addItemToSpawn(new PotionOfPurity());
|
||||||
|
|
||||||
entrance().set( Door.Type.UNLOCKED );
|
entrance().set( Door.Type.REGULAR );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user