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;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
|
@ -30,6 +28,8 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.utils.BArray;
|
||||
import com.watabou.utils.Bundle;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Blob extends Actor {
|
||||
|
||||
{
|
||||
|
@ -192,6 +192,12 @@ public class Blob extends Actor {
|
|||
volume -= cur[cell];
|
||||
cur[cell] = 0;
|
||||
}
|
||||
|
||||
public void fullyClear(){
|
||||
volume = 0;
|
||||
cur = new int[LENGTH];
|
||||
off = new int[LENGTH];
|
||||
}
|
||||
|
||||
public String tileDesc() {
|
||||
return null;
|
||||
|
|
|
@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
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.Tengu;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||
|
@ -242,6 +243,9 @@ public class PrisonBossLevel extends Level {
|
|||
exit = i;
|
||||
|
||||
visited = mapped = new boolean[LENGTH];
|
||||
for (Blob blob: blobs.values()){
|
||||
blob.fullyClear();
|
||||
}
|
||||
addVisuals(); //this also resets existing visuals
|
||||
resetTraps();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user