Search in sources :

Example 1 with FreakyFourInstance

use of com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance in project Skree by Skelril.

the class FreakyFourBossDeath method apply.

@Override
public Optional<Instruction<UnbindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>>>> apply(UnbindCondition unbindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>> boss) {
    FreakyFourInstance inst = boss.getDetail().getZone();
    inst.bossDied(inst.getCurrentboss().get());
    return Optional.empty();
}
Also used : FreakyFourInstance(com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance)

Example 2 with FreakyFourInstance

use of com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance in project Skree by Skelril.

the class CharlotteMinionManager method handleDamage.

private void handleDamage() {
    List<Instruction<DamageCondition, Boss<CaveSpider, ZoneBossDetail<FreakyFourInstance>>>> damageProcessor = getDamageProcessor();
    damageProcessor.add((condition, boss) -> {
        FreakyFourInstance inst = boss.getDetail().getZone();
        Optional<Living> optBossEnt = inst.getBoss(FreakyFourBoss.CHARLOTTE);
        if (optBossEnt.isPresent()) {
            EntityHealthUtil.heal(optBossEnt.get(), condition.getEvent().getBaseDamage());
        }
        return Optional.empty();
    });
}
Also used : FreakyFourInstance(com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance) CaveSpider(org.spongepowered.api.entity.living.monster.CaveSpider) Living(org.spongepowered.api.entity.living.Living) Instruction(com.skelril.openboss.Instruction) ZoneBossDetail(com.skelril.skree.content.zone.ZoneBossDetail)

Aggregations

FreakyFourInstance (com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance)2 Instruction (com.skelril.openboss.Instruction)1 ZoneBossDetail (com.skelril.skree.content.zone.ZoneBossDetail)1 Living (org.spongepowered.api.entity.living.Living)1 CaveSpider (org.spongepowered.api.entity.living.monster.CaveSpider)1