use of com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas in project shattered-pixel-dungeon-gdx by 00-Evan.
the class CorrosionTrap method activate.
@Override
public void activate() {
CorrosiveGas corrosiveGas = Blob.seed(pos, 80 + 5 * Dungeon.depth, CorrosiveGas.class);
corrosiveGas.setStrength(1 + Dungeon.depth / 4);
GameScene.add(corrosiveGas);
}
use of com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas 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