Search in sources :

Example 1 with Yog

use of com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog in project shattered-pixel-dungeon-gdx by 00-Evan.

the class HallsBossLevel method press.

@Override
public void press(int cell, Char hero) {
    super.press(cell, hero);
    if (!enteredArena && hero == Dungeon.hero && cell != entrance) {
        enteredArena = true;
        seal();
        for (int i = ROOM_LEFT - 1; i <= ROOM_RIGHT + 1; i++) {
            doMagic((ROOM_TOP - 1) * width() + i);
            doMagic((ROOM_BOTTOM + 1) * width() + i);
        }
        for (int i = ROOM_TOP; i < ROOM_BOTTOM + 1; i++) {
            doMagic(i * width() + ROOM_LEFT - 1);
            doMagic(i * width() + ROOM_RIGHT + 1);
        }
        doMagic(entrance);
        GameScene.updateMap();
        Dungeon.observe();
        Yog boss = new Yog();
        do {
            boss.pos = Random.Int(length());
        } while (!passable[boss.pos] || heroFOV[boss.pos]);
        GameScene.add(boss);
        boss.spawnFists();
        stairs = entrance;
        entrance = -1;
    }
}
Also used : Yog(com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog)

Aggregations

Yog (com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog)1