v0.9.3: fixed visual errors in boss arenas entered prior to v0.9.3

This commit is contained in:
Evan Debenham 2021-05-22 21:25:56 -04:00
parent f31694420a
commit a4b83fbe11
2 changed files with 34 additions and 4 deletions

View File

@ -51,18 +51,48 @@ public class ShatteredPixelDungeon extends Game {
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel.class, com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewPrisonBossLevel" ); "com.shatteredpixel.shatteredpixeldungeon.levels.NewPrisonBossLevel" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel.ExitVisual.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewPrisonBossLevel$exitVisual" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel.ExitVisualWalls.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewPrisonBossLevel$exitVisualWalls" );
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.actors.mobs.DM300.class, com.shatteredpixel.shatteredpixeldungeon.actors.mobs.DM300.class,
"com.shatteredpixel.shatteredpixeldungeon.actors.mobs.NewDM300" ); "com.shatteredpixel.shatteredpixeldungeon.actors.mobs.NewDM300" );
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.class, com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel" ); "com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.PylonEnergy.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel$PylonEnergy" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.ArenaVisuals.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel$ArenaVisuals" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.CityEntrance.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel$CityEntrance" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel.EntranceOverhang.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCavesBossLevel$EntranceOverhang" );
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel.class, com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCityBossLevel" ); "com.shatteredpixel.shatteredpixeldungeon.levels.NewCityBossLevel" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel.CustomGroundVisuals.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCityBossLevel$CustomGroundVisuals" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel.CustomWallVisuals.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewCityBossLevel$CustomWallVisuals" );
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel.class, com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewHallsBossLevel" ); "com.shatteredpixel.shatteredpixeldungeon.levels.NewHallsBossLevel" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel.CenterPieceVisuals.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewHallsBossLevel$CenterPieceWalls" );
com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel.CenterPieceWalls.class,
"com.shatteredpixel.shatteredpixeldungeon.levels.NewHallsBossLevel$CenterPieceWalls" );
com.watabou.utils.Bundle.addAlias( com.watabou.utils.Bundle.addAlias(
com.shatteredpixel.shatteredpixeldungeon.items.Waterskin.class, com.shatteredpixel.shatteredpixeldungeon.items.Waterskin.class,
"com.shatteredpixel.shatteredpixeldungeon.items.DewVial" ); "com.shatteredpixel.shatteredpixeldungeon.items.DewVial" );

View File

@ -273,12 +273,12 @@ public class PrisonBossLevel extends Level {
} }
} }
CustomTilemap vis = new exitVisual(); CustomTilemap vis = new ExitVisual();
vis.pos(11, 10); vis.pos(11, 10);
customTiles.add(vis); customTiles.add(vis);
GameScene.add(vis, false); GameScene.add(vis, false);
vis = new exitVisualWalls(); vis = new ExitVisualWalls();
vis.pos(11, 10); vis.pos(11, 10);
customWalls.add(vis); customWalls.add(vis);
GameScene.add(vis, true); GameScene.add(vis, true);
@ -756,7 +756,7 @@ public class PrisonBossLevel extends Level {
} }
public static class exitVisual extends CustomTilemap { public static class ExitVisual extends CustomTilemap {
{ {
texture = Assets.Environment.PRISON_EXIT_NEW; texture = Assets.Environment.PRISON_EXIT_NEW;
@ -802,7 +802,7 @@ public class PrisonBossLevel extends Level {
} }
} }
public static class exitVisualWalls extends CustomTilemap { public static class ExitVisualWalls extends CustomTilemap {
{ {
texture = Assets.Environment.PRISON_EXIT_NEW; texture = Assets.Environment.PRISON_EXIT_NEW;