From b993e00c972157ec5bb682935341d9646a773c87 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 18 Oct 2019 18:46:14 -0400 Subject: [PATCH] v0.7.5d: fixed plant sprites persisting when they shouldn't after Tengu fight --- .../levels/NewPrisonBossLevel.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java index 9ac559fca..887aae26b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java @@ -498,7 +498,6 @@ public class NewPrisonBossLevel extends Level { } setMapEnd(); - cleanMapState(); for (Mob m : allies){ do{ @@ -511,6 +510,7 @@ public class NewPrisonBossLevel extends Level { tengu.die(Dungeon.hero); clearEntities(tenguCell); + cleanMapState(); for (Item item : storedItems) { if (!(item instanceof NewTengu.BombAbility.BombItem) @@ -849,6 +849,15 @@ public class NewPrisonBossLevel extends Level { v.map(data, tileW); return v; } + + @Override + public void restoreFromBundle(Bundle bundle) { + super.restoreFromBundle(bundle); + tileX = 11; + tileY = 10; + tileW = 14; + tileH = 11; + } } public static class exitVisualWalls extends CustomTilemap { @@ -897,6 +906,16 @@ public class NewPrisonBossLevel extends Level { v.map(data, tileW); return v; } + + @Override + public void restoreFromBundle(Bundle bundle) { + super.restoreFromBundle(bundle); + tileX = 11; + tileY = 10; + tileW = 14; + tileH = 22; + } + } }