Java Code Examples for com.megacrit.cardcrawl.actions.AbstractGameAction#AttackEffect
The following examples show how to use
com.megacrit.cardcrawl.actions.AbstractGameAction#AttackEffect .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MirrorPower.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public boolean onDamageToRedirect(AbstractPlayer player, DamageInfo info, AbstractGameAction.AttackEffect attackEffect) { if (info.type != DamageInfo.DamageType.THORNS && info.type != DamageInfo.DamageType.HP_LOSS && info.owner != null && info.owner != this.owner) { this.flash(); this.addToTop(new DamageAction(info.owner, new DamageInfo(this.owner, info.output, DamageInfo.DamageType.THORNS), attackEffect, false)); return true; } return false; }
Example 2
Source File: Wanderer.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public AbstractGameAction.AttackEffect[] getSpireHeartSlashEffect() { return new AbstractGameAction.AttackEffect[]{ AbstractGameAction.AttackEffect.FIRE, AbstractGameAction.AttackEffect.POISON, AbstractGameAction.AttackEffect.FIRE}; }
Example 3
Source File: TheTranquil.java From FruityMod-StS with MIT License | 5 votes |
@Override public AbstractGameAction.AttackEffect[] getSpireHeartSlashEffect() { return new AbstractGameAction.AttackEffect[]{ AbstractGameAction.AttackEffect.FIRE, AbstractGameAction.AttackEffect.BLUNT_HEAVY, AbstractGameAction.AttackEffect.FIRE}; }
Example 4
Source File: DamageSomeEnemiesAction.java From FruityMod-StS with MIT License | 5 votes |
public DamageSomeEnemiesAction(AbstractCreature source, boolean[] targets, int[] amount, DamageInfo.DamageType type, AbstractGameAction.AttackEffect effect, boolean isFast) { this.setValues(null, source, amount[0]); this.damage = amount; this.targets = targets; this.actionType = AbstractGameAction.ActionType.DAMAGE; this.damageType = type; this.attackEffect = effect; this.duration = isFast ? Settings.ACTION_DUR_XFAST : Settings.ACTION_DUR_FAST; int targetCount = 0; for (boolean target : targets) { if (target) ++targetCount; } this.targetsAll = targetCount == targets.length; }
Example 5
Source File: TheSeeker.java From FruityMod-StS with MIT License | 5 votes |
@Override public AbstractGameAction.AttackEffect[] getSpireHeartSlashEffect() { return new AbstractGameAction.AttackEffect[]{ AbstractGameAction.AttackEffect.FIRE, AbstractGameAction.AttackEffect.BLUNT_HEAVY, AbstractGameAction.AttackEffect.FIRE}; }
Example 6
Source File: TheDefault.java From StS-DefaultModBase with MIT License | 5 votes |
@Override public AbstractGameAction.AttackEffect[] getSpireHeartSlashEffect() { return new AbstractGameAction.AttackEffect[]{ AbstractGameAction.AttackEffect.BLUNT_HEAVY, AbstractGameAction.AttackEffect.BLUNT_HEAVY, AbstractGameAction.AttackEffect.BLUNT_HEAVY}; }
Example 7
Source File: BurningLoseHpAction.java From jorbs-spire-mod with MIT License | 4 votes |
public BurningLoseHpAction(AbstractCreature target, AbstractCreature source, int amount, AbstractGameAction.AttackEffect effect) { this.setValues(target, source, amount); this.actionType = AbstractGameAction.ActionType.DAMAGE; this.attackEffect = effect; this.duration = DURATION; }
Example 8
Source File: DamageSomeEnemiesAction.java From FruityMod-StS with MIT License | 4 votes |
public DamageSomeEnemiesAction(AbstractCreature source, boolean[] targets, int[] amount, DamageInfo.DamageType type, AbstractGameAction.AttackEffect effect) { this(source, targets, amount, type, effect, false); }