v0.3.4c: tengu level shifting now clears all blobs
This commit is contained in:
parent
c10666ef6e
commit
2292d71d8a
|
@ -20,8 +20,6 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.actors.blobs;
|
package com.shatteredpixel.shatteredpixeldungeon.actors.blobs;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
|
@ -30,6 +28,8 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.BArray;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.BArray;
|
||||||
import com.watabou.utils.Bundle;
|
import com.watabou.utils.Bundle;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
public class Blob extends Actor {
|
public class Blob extends Actor {
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -193,6 +193,12 @@ public class Blob extends Actor {
|
||||||
cur[cell] = 0;
|
cur[cell] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void fullyClear(){
|
||||||
|
volume = 0;
|
||||||
|
cur = new int[LENGTH];
|
||||||
|
off = new int[LENGTH];
|
||||||
|
}
|
||||||
|
|
||||||
public String tileDesc() {
|
public String tileDesc() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Tengu;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Tengu;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||||
|
@ -242,6 +243,9 @@ public class PrisonBossLevel extends Level {
|
||||||
exit = i;
|
exit = i;
|
||||||
|
|
||||||
visited = mapped = new boolean[LENGTH];
|
visited = mapped = new boolean[LENGTH];
|
||||||
|
for (Blob blob: blobs.values()){
|
||||||
|
blob.fullyClear();
|
||||||
|
}
|
||||||
addVisuals(); //this also resets existing visuals
|
addVisuals(); //this also resets existing visuals
|
||||||
resetTraps();
|
resetTraps();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user