v0.6.5: corrected room declarations in prison boss level
This commit is contained in:
parent
2cf3a16feb
commit
cf766e9638
|
@ -35,6 +35,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.MazeRoom;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EmptyRoom;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.GrippingTrap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.Trap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
|
@ -180,13 +181,13 @@ public class PrisonBossLevel extends Level {
|
|||
if (ch == Dungeon.hero){
|
||||
//hero enters tengu's chamber
|
||||
if (state == State.START
|
||||
&& ((Room)new Room().set(2, 25, 8, 32)).inside(cellToPoint(cell))){
|
||||
&& (new EmptyRoom().set(2, 25, 8, 32)).inside(cellToPoint(cell))){
|
||||
progress();
|
||||
}
|
||||
|
||||
//hero finishes the maze
|
||||
else if (state == State.MAZE
|
||||
&& ((Room)new Room().set(4, 0, 7, 4)).inside(cellToPoint(cell))){
|
||||
&& (new EmptyRoom().set(4, 0, 7, 4)).inside(cellToPoint(cell))){
|
||||
progress();
|
||||
}
|
||||
}
|
||||
|
@ -309,7 +310,7 @@ public class PrisonBossLevel extends Level {
|
|||
case FIGHT_START:
|
||||
|
||||
changeMap(MAP_MAZE);
|
||||
clearEntities((Room) new Room().set(0, 5, 8, 32)); //clear the entrance
|
||||
clearEntities((Room) new EmptyRoom().set(0, 5, 8, 32)); //clear the entrance
|
||||
|
||||
Actor.remove(tengu);
|
||||
mobs.remove(tengu);
|
||||
|
@ -339,7 +340,7 @@ public class PrisonBossLevel extends Level {
|
|||
Dungeon.hero.sprite.place(Dungeon.hero.pos);
|
||||
|
||||
changeMap(MAP_ARENA);
|
||||
clearEntities( (Room) new Room().set(0, 0, 10, 4)); //clear all but the area right around the teleport spot
|
||||
clearEntities( (Room) new EmptyRoom().set(0, 0, 10, 4)); //clear all but the area right around the teleport spot
|
||||
|
||||
//if any allies are left over, move them along the same way as the hero
|
||||
for (Mob m : mobs){
|
||||
|
|
Loading…
Reference in New Issue
Block a user