v3.0.0: DM-300 now breaks light walls if it goes through them

This commit is contained in:
Evan Debenham
2025-01-23 14:15:07 -05:00
parent e61064aa1e
commit 3d40116f86

View File

@@ -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();