Search in sources :

Example 1 with InjuryEffect

use of eidolons.ability.effects.oneshot.rule.InjuryEffect in project Eidolons by IDemiurge.

the class InjuryRule method applyInjuryRule.

// dynamic reset to support cure?
public static void applyInjuryRule(DC_ActiveObj action) {
    INJURY_TYPE type = null;
    new InjuryEffect(type);
// action.getDamageType()
}
Also used : INJURY_TYPE(main.content.CONTENT_CONSTS2.INJURY_TYPE) InjuryEffect(eidolons.ability.effects.oneshot.rule.InjuryEffect)

Example 2 with InjuryEffect

use of eidolons.ability.effects.oneshot.rule.InjuryEffect in project Eidolons by IDemiurge.

the class InjuryRule method applyOldWounds.

public static void applyOldWounds(Unit hero) {
    Effects effects = new Effects();
    for (String substring : StringMaster.open(hero.getProperty(PROPS.INJURIES))) {
        INJURY template = new EnumMaster<INJURY>().retrieveEnumConst(INJURY.class, substring);
        effects.add(new InjuryEffect(template, true));
    }
    effects.apply(Ref.getSelfTargetingRefCopy(hero));
}
Also used : INJURY(main.content.CONTENT_CONSTS2.INJURY) InjuryEffect(eidolons.ability.effects.oneshot.rule.InjuryEffect) Effects(main.ability.effects.Effects)

Aggregations

InjuryEffect (eidolons.ability.effects.oneshot.rule.InjuryEffect)2 Effects (main.ability.effects.Effects)1 INJURY (main.content.CONTENT_CONSTS2.INJURY)1 INJURY_TYPE (main.content.CONTENT_CONSTS2.INJURY_TYPE)1