v0.9.1b: fixed fading Tengu traps still persisting in rare cases
This commit is contained in:
+10
-4
@@ -338,6 +338,12 @@ public class NewPrisonBossLevel extends Level {
|
|||||||
}
|
}
|
||||||
addVisuals(); //this also resets existing visuals
|
addVisuals(); //this also resets existing visuals
|
||||||
traps.clear();
|
traps.clear();
|
||||||
|
|
||||||
|
for (CustomTilemap t : customTiles){
|
||||||
|
if (t instanceof FadingTraps){
|
||||||
|
((FadingTraps) t).remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GameScene.resetMap();
|
GameScene.resetMap();
|
||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
@@ -546,10 +552,6 @@ public class NewPrisonBossLevel extends Level {
|
|||||||
traps.clear();
|
traps.clear();
|
||||||
Painter.fill(this, tenguCell, 1, Terrain.EMPTY);
|
Painter.fill(this, tenguCell, 1, Terrain.EMPTY);
|
||||||
buildFlagMaps();
|
buildFlagMaps();
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void placeTrapsInTenguCell(float fill){
|
|
||||||
|
|
||||||
for (CustomTilemap vis : customTiles){
|
for (CustomTilemap vis : customTiles){
|
||||||
if (vis instanceof FadingTraps){
|
if (vis instanceof FadingTraps){
|
||||||
@@ -557,6 +559,10 @@ public class NewPrisonBossLevel extends Level {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void placeTrapsInTenguCell(float fill){
|
||||||
|
|
||||||
Point tenguPoint = cellToPoint(tengu.pos);
|
Point tenguPoint = cellToPoint(tengu.pos);
|
||||||
Point heroPoint = cellToPoint(Dungeon.hero.pos);
|
Point heroPoint = cellToPoint(Dungeon.hero.pos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user