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;
}