v2.5.1: Fixed compass weirdness in prison boss level
This commit is contained in:
+13
-4
@@ -209,6 +209,12 @@ public class PrisonBossLevel extends Level {
|
|||||||
for (Point p : startTorches){
|
for (Point p : startTorches){
|
||||||
Painter.set(this, p, Terrain.WALL_DECO);
|
Painter.set(this, p, Terrain.WALL_DECO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//we set up the exit for consistently with other levels, even though it's in the walls
|
||||||
|
LevelTransition exit = new LevelTransition(this, pointToCell(levelExit), LevelTransition.Type.REGULAR_EXIT);
|
||||||
|
exit.right+=2;
|
||||||
|
exit.bottom+=3;
|
||||||
|
transitions.add(exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
//area where items/chars are preserved when moving to the arena
|
//area where items/chars are preserved when moving to the arena
|
||||||
@@ -307,10 +313,13 @@ public class PrisonBossLevel extends Level {
|
|||||||
cell += width();
|
cell += width();
|
||||||
}
|
}
|
||||||
|
|
||||||
LevelTransition exit = new LevelTransition(this, pointToCell(levelExit), LevelTransition.Type.REGULAR_EXIT);
|
//pre-2.5.1 saves, if exit wasn't already added
|
||||||
exit.right+=2;
|
if (exit() == entrance()) {
|
||||||
exit.bottom+=3;
|
LevelTransition exit = new LevelTransition(this, pointToCell(levelExit), LevelTransition.Type.REGULAR_EXIT);
|
||||||
transitions.add(exit);
|
exit.right += 2;
|
||||||
|
exit.bottom += 3;
|
||||||
|
transitions.add(exit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//keep track of removed items as the level is changed. Dump them back into the level at the end.
|
//keep track of removed items as the level is changed. Dump them back into the level at the end.
|
||||||
|
|||||||
Reference in New Issue
Block a user