Search in sources :

Example 1 with AddStatusEffect

use of main.ability.effects.common.AddStatusEffect in project Eidolons by IDemiurge.

the class UnconsciousBuffEffect method getEffects.

private static Effect getEffects() {
    Effects effects = EffectFinder.initParamModEffects(PARAM_MOD_EFFECTS_STRING, new Ref());
    effects.add(new AddStatusEffect(UnitEnums.STATUS.PRONE));
    effects.add(new AddStatusEffect(UnitEnums.STATUS.IMMOBILE));
    effects.add(new AddStatusEffect(UnitEnums.STATUS.UNCONSCIOUS));
    return effects;
}
Also used : Ref(main.entity.Ref) Effects(main.ability.effects.Effects) AddStatusEffect(main.ability.effects.common.AddStatusEffect)

Example 2 with AddStatusEffect

use of main.ability.effects.common.AddStatusEffect in project Eidolons by IDemiurge.

the class SleepEffect method applyThis.

@Override
public boolean applyThis() {
    // makes another throw each time when hit?
    // statically parsed Spellpower/Mastery?
    // add roll on hit - dmg vs max toughness
    RollEffect rollEffect = new RollEffect(GenericEnums.ROLL_TYPES.MIND_AFFECTING, new RemoveBuffEffect(getBuffName()));
    Conditions conditions = new Conditions(new RefCondition(KEYS.EVENT_TARGET, KEYS.TARGET));
    return new AddBuffEffect(getBuffName(), new Effects(new AddStatusEffect(UnitEnums.STATUS.ASLEEP), new AddTriggerEffect(STANDARD_EVENT_TYPE.UNIT_IS_DEALT_TOUGHNESS_DAMAGE, conditions, KEYS.EVENT_TARGET, rollEffect))).apply(ref);
// roll ref needs to be tested!
}
Also used : AddBuffEffect(eidolons.ability.effects.attachment.AddBuffEffect) RollEffect(eidolons.ability.effects.oneshot.mechanic.RollEffect) RefCondition(main.elements.conditions.RefCondition) Effects(main.ability.effects.Effects) AddStatusEffect(main.ability.effects.common.AddStatusEffect) Conditions(main.elements.conditions.Conditions) AddTriggerEffect(eidolons.ability.effects.attachment.AddTriggerEffect)

Example 3 with AddStatusEffect

use of main.ability.effects.common.AddStatusEffect in project Eidolons by IDemiurge.

the class TrapEffect method applyThis.

@Override
public boolean applyThis() {
    Effect effect = new AddStatusEffect(UnitEnums.STATUS.TRAPPED.name());
    new AddBuffEffect(effect).apply(ref);
    return super.applyThis();
}
Also used : Effect(main.ability.effects.Effect) AddStatusEffect(main.ability.effects.common.AddStatusEffect) TriggerEffect(eidolons.ability.effects.continuous.triggered.TriggerEffect) AddStatusEffect(main.ability.effects.common.AddStatusEffect)

Example 4 with AddStatusEffect

use of main.ability.effects.common.AddStatusEffect in project Eidolons by IDemiurge.

the class StealthRule method applySpotted.

public static void applySpotted(Unit target) {
    // TODO
    BuffMaster.applyBuff(SPOTTED, new AddStatusEffect(UnitEnums.STATUS.SPOTTED), target, 1);
    // also negate concealment? // dispel
    // hidden?
    target.setPlayerVisionStatus(PLAYER_VISION.DETECTED);
    target.setSneaking(false);
// to be dispelled by renewed use of Invisiblity or special Hide
// actions
// or perhaps upon moving beyond vision range TODO
}
Also used : AddStatusEffect(main.ability.effects.common.AddStatusEffect)

Example 5 with AddStatusEffect

use of main.ability.effects.common.AddStatusEffect in project Eidolons by IDemiurge.

the class TimeRule method addBuff.

private void addBuff(Unit unitObj, boolean preliminary) {
    if (unitObj.isBfObj()) {
        return;
    }
    AddStatusEffect effect;
    effect = new AddStatusEffect(UnitEnums.STATUS.LATE);
    new AddBuffEffect((preliminary) ? BUFF_NAME_PRELIMINARY : BUFF_NAME, effect, 1).apply(Ref.getSelfTargetingRefCopy(unitObj));
}
Also used : AddBuffEffect(eidolons.ability.effects.attachment.AddBuffEffect) AddStatusEffect(main.ability.effects.common.AddStatusEffect)

Aggregations

AddStatusEffect (main.ability.effects.common.AddStatusEffect)6 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)3 Effects (main.ability.effects.Effects)3 Effect (main.ability.effects.Effect)2 AddTriggerEffect (eidolons.ability.effects.attachment.AddTriggerEffect)1 TriggerEffect (eidolons.ability.effects.continuous.triggered.TriggerEffect)1 ModifyCounterEffect (eidolons.ability.effects.oneshot.mechanic.ModifyCounterEffect)1 RollEffect (eidolons.ability.effects.oneshot.mechanic.RollEffect)1 ContinuousEffect (main.ability.effects.continuous.ContinuousEffect)1 CustomTargetEffect (main.ability.effects.continuous.CustomTargetEffect)1 STATUS (main.content.enums.entity.UnitEnums.STATUS)1 Conditions (main.elements.conditions.Conditions)1 RefCondition (main.elements.conditions.RefCondition)1 Ref (main.entity.Ref)1