Search in sources :

Example 1 with CatacombsHealthInstruction

use of com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction in project Skree by Skelril.

the class CatacombsInstance method spawnStrong.

private Boss<Zombie, CatacombsBossDetail> spawnStrong(Location<World> loc) {
    Zombie zombie = spawnZombie(loc);
    Boss<Zombie, CatacombsBossDetail> boss = new Boss<>(zombie, new CatacombsBossDetail(this, wave * 2));
    List<Instruction<BindCondition, Boss<Zombie, CatacombsBossDetail>>> bindProcessor = boss.getBindProcessor();
    bindProcessor.add(new CatacombsHealthInstruction(25));
    bindProcessor.add(new NamedBindInstruction<>("Wrathful Zombie"));
    return boss;
}
Also used : Boss(com.skelril.openboss.Boss) Zombie(org.spongepowered.api.entity.living.monster.Zombie) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction) Instruction(com.skelril.openboss.Instruction) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction)

Example 2 with CatacombsHealthInstruction

use of com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction in project Skree by Skelril.

the class CatacombsInstance method spawnNormal.

private Boss<Zombie, CatacombsBossDetail> spawnNormal(Location<World> loc) {
    Zombie zombie = spawnZombie(loc);
    Boss<Zombie, CatacombsBossDetail> boss = new Boss<>(zombie, new CatacombsBossDetail(this, wave));
    List<Instruction<BindCondition, Boss<Zombie, CatacombsBossDetail>>> bindProcessor = boss.getBindProcessor();
    bindProcessor.add(new CatacombsHealthInstruction(20));
    bindProcessor.add(new NamedBindInstruction<>("Guardian Zombie"));
    return boss;
}
Also used : Boss(com.skelril.openboss.Boss) Zombie(org.spongepowered.api.entity.living.monster.Zombie) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction) Instruction(com.skelril.openboss.Instruction) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction)

Example 3 with CatacombsHealthInstruction

use of com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction in project Skree by Skelril.

the class CatacombsManager method setUpBoss.

private void setUpBoss() {
    Sponge.getEventManager().registerListeners(SkreePlugin.inst(), new BossListener<>(bossManager, Zombie.class));
    List<Instruction<BindCondition, Boss<Zombie, CatacombsBossDetail>>> bindProcessor = bossManager.getBindProcessor();
    bindProcessor.add(new NamedBindInstruction<>("Necromancer"));
    bindProcessor.add(new CatacombsHealthInstruction(200));
    List<Instruction<UnbindCondition, Boss<Zombie, CatacombsBossDetail>>> unbindProcessor = bossManager.getUnbindProcessor();
    unbindProcessor.add(new CheckedSpawnWave());
    unbindProcessor.add(new WaveDropInstruction(2));
    List<Instruction<DamageCondition, Boss<Zombie, CatacombsBossDetail>>> damageProcessor = bossManager.getDamageProcessor();
    damageProcessor.add(new WaveDamageModifier());
}
Also used : WaveDamageModifier(com.skelril.skree.content.zone.group.catacombs.instruction.WaveDamageModifier) CheckedSpawnWave(com.skelril.skree.content.zone.group.catacombs.instruction.CheckedSpawnWave) Zombie(org.spongepowered.api.entity.living.monster.Zombie) WaveDropInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.WaveDropInstruction) NamedBindInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.bossmove.NamedBindInstruction) Instruction(com.skelril.openboss.Instruction) WaveDropInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.WaveDropInstruction) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction) CatacombsHealthInstruction(com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction)

Aggregations

Instruction (com.skelril.openboss.Instruction)3 CatacombsHealthInstruction (com.skelril.skree.content.zone.group.catacombs.instruction.CatacombsHealthInstruction)3 Zombie (org.spongepowered.api.entity.living.monster.Zombie)3 Boss (com.skelril.openboss.Boss)2 CheckedSpawnWave (com.skelril.skree.content.zone.group.catacombs.instruction.CheckedSpawnWave)1 WaveDamageModifier (com.skelril.skree.content.zone.group.catacombs.instruction.WaveDamageModifier)1 WaveDropInstruction (com.skelril.skree.content.zone.group.catacombs.instruction.WaveDropInstruction)1 NamedBindInstruction (com.skelril.skree.content.zone.group.catacombs.instruction.bossmove.NamedBindInstruction)1