v3.0.0: DM-300 now breaks light walls if it goes through them
This commit is contained in:
@@ -43,6 +43,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Sleep;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Slow;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Terror;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Vertigo;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.WallOfLight;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.FloatingText;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.TargetedCell;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.SparkParticle;
|
||||
@@ -627,6 +628,9 @@ public class DM300 extends Mob {
|
||||
Level.set(pos+i, Terrain.EMPTY_DECO);
|
||||
GameScene.updateMap(pos+i);
|
||||
}
|
||||
if (Dungeon.level.blobs.get(WallOfLight.LightWall.class) != null){
|
||||
Dungeon.level.blobs.get(WallOfLight.LightWall.class).clear(pos+i);
|
||||
}
|
||||
}
|
||||
Dungeon.level.cleanWalls();
|
||||
Dungeon.observe();
|
||||
|
||||
Reference in New Issue
Block a user