Search in sources :

Example 1 with MimicPie

use of com.watabou.pixeldungeon.actors.mobs.MimicPie in project pixel-dungeon-remix by NYRDS.

the class PseudoPasty method pick.

@Override
public Item pick(Char ch, int pos) {
    Level level = Dungeon.level;
    int spawnPos = level.getEmptyCellNextTo(pos);
    if (!level.cellValid(spawnPos)) {
        return this;
    }
    MimicPie mob = new MimicPie();
    mob.setPos(spawnPos);
    mob.setState(mob.WANDERING);
    mob.adjustStats(Dungeon.depth);
    level.spawnMob(mob);
    Dungeon.hero.checkVisibleMobs();
    AttackIndicator.updateState();
    CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
    Sample.INSTANCE.play(Assets.SND_MIMIC);
    return null;
}
Also used : Level(com.watabou.pixeldungeon.levels.Level) MimicPie(com.watabou.pixeldungeon.actors.mobs.MimicPie)

Aggregations

MimicPie (com.watabou.pixeldungeon.actors.mobs.MimicPie)1 Level (com.watabou.pixeldungeon.levels.Level)1