Search in sources :

Example 1 with CorrosiveGas

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);
}
Also used : CorrosiveGas(com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas)

Example 2 with 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);
    }
}
Also used : Blob(com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob) Char(com.shatteredpixel.shatteredpixeldungeon.actors.Char) CorrosiveGas(com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas)

Aggregations

CorrosiveGas (com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas)2 Char (com.shatteredpixel.shatteredpixeldungeon.actors.Char)1 Blob (com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob)1