Search in sources :

Example 6 with Blob

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

Aggregations

Blob (com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob)6 Mob (com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob)3 Heap (com.shatteredpixel.shatteredpixeldungeon.items.Heap)2 Plant (com.shatteredpixel.shatteredpixeldungeon.plants.Plant)2 CustomTiledVisual (com.shatteredpixel.shatteredpixeldungeon.tiles.CustomTiledVisual)2 IntMap (com.badlogic.gdx.utils.IntMap)1 Char (com.shatteredpixel.shatteredpixeldungeon.actors.Char)1 CorrosiveGas (com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas)1 Flare (com.shatteredpixel.shatteredpixeldungeon.effects.Flare)1 Honeypot (com.shatteredpixel.shatteredpixeldungeon.items.Honeypot)1 Item (com.shatteredpixel.shatteredpixeldungeon.items.Item)1 Potion (com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion)1 RegularLevel (com.shatteredpixel.shatteredpixeldungeon.levels.RegularLevel)1 Trap (com.shatteredpixel.shatteredpixeldungeon.levels.traps.Trap)1 HeroSprite (com.shatteredpixel.shatteredpixeldungeon.sprites.HeroSprite)1 DungeonTerrainTilemap (com.shatteredpixel.shatteredpixeldungeon.tiles.DungeonTerrainTilemap)1 DungeonWallsTilemap (com.shatteredpixel.shatteredpixeldungeon.tiles.DungeonWallsTilemap)1 FogOfWar (com.shatteredpixel.shatteredpixeldungeon.tiles.FogOfWar)1 GridTileMap (com.shatteredpixel.shatteredpixeldungeon.tiles.GridTileMap)1 TerrainFeaturesTilemap (com.shatteredpixel.shatteredpixeldungeon.tiles.TerrainFeaturesTilemap)1