use of com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob in project shattered-pixel-dungeon-gdx by 00-Evan.
the class WandOfCorrosion method onZap.
@Override
protected void onZap(Ballistica bolt) {
Blob corrosiveGas = Blob.seed(bolt.collisionPos, 50 + 10 * level(), CorrosiveGas.class);
CellEmitter.center(bolt.collisionPos).burst(CorrosionParticle.SPLASH, 10);
((CorrosiveGas) corrosiveGas).setStrength(level() + 1);
GameScene.add(corrosiveGas);
for (int i : PathFinder.NEIGHBOURS9) {
Char ch = Actor.findChar(bolt.collisionPos + i);
if (ch != null) {
processSoulMark(ch, chargesPerCast());
}
}
if (Actor.findChar(bolt.collisionPos) == null) {
Dungeon.level.press(bolt.collisionPos, null, true);
}
}
Aggregations