com.megacrit.cardcrawl.powers.VulnerablePower Java Examples
The following examples show how to use
com.megacrit.cardcrawl.powers.VulnerablePower.
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: ZenithPatch.java From FruityMod-StS with MIT License | 5 votes |
public static void Prefix(ShuffleAction __instance) { if (AbstractDungeon.player.hasPower(ZenithPower.POWER_ID)) { AbstractPower q = AbstractDungeon.player.getPower(ZenithPower.POWER_ID); q.flash(); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(AbstractDungeon.player, AbstractDungeon.player, new VulnerablePower(AbstractDungeon.player, q.amount, false), q.amount)); } }
Example #2
Source File: DefaultRareSkill.java From StS-DefaultModBase with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { for (int i = 0; i < TIMES; i++) { for (final AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) { AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new VulnerablePower(mo, magicNumber, false), magicNumber)); } } }
Example #3
Source File: DefaultSecondMagicNumberSkill.java From StS-DefaultModBase with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(m, p, new VulnerablePower(m, magicNumber, false), this.magicNumber)); AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(m, p, new PoisonPower(m, p, this.defaultSecondMagicNumber), this.defaultSecondMagicNumber)); }
Example #4
Source File: GravityWellPower.java From FruityMod-StS with MIT License | 5 votes |
public int onAttackedToChangeDamage(DamageInfo info, int damageAmount) { int i = 0; if (info.owner instanceof AbstractMonster) { for (AbstractPower p : info.owner.powers) { if (p instanceof WeakPower || p instanceof VulnerablePower) { i += p.amount; } } } return damageAmount - i;// 349 }
Example #5
Source File: AstralHazePower.java From FruityMod-StS with MIT License | 5 votes |
@Override public int onAttacked(DamageInfo info, int damageAmount) { if (info.type != DamageInfo.DamageType.THORNS && info.type != DamageInfo.DamageType.HP_LOSS && info.owner != null && info.owner != this.owner && !this.attackers.contains(info.owner)) { this.flash(); this.attackers.add(info.owner); AbstractDungeon.actionManager.addToTop(new ApplyPowerAction(info.owner, this.owner, new WeakPower(info.owner, this.amount, true), this.amount, true, AbstractGameAction.AttackEffect.NONE)); AbstractDungeon.actionManager.addToTop( new ApplyPowerAction(info.owner, this.owner, new VulnerablePower(info.owner, this.amount, true), this.amount, true, AbstractGameAction.AttackEffect.NONE)); } return damageAmount; }
Example #6
Source File: Overload.java From FruityMod-StS with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom(new GainEnergyAction(this.magicNumber)); AbstractDungeon.actionManager.addToBottom(new DrawCardAction(p, this.magicNumber)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new VulnerablePower(p, DEBUFF_AMT, true), DEBUFF_AMT)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new WeakPower(p, DEBUFF_AMT, true), DEBUFF_AMT)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new FrailPower(p, DEBUFF_AMT, true), DEBUFF_AMT)); }
Example #7
Source File: Flare.java From FruityMod-StS with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom(new com.megacrit.cardcrawl.actions.common.DamageAction(m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SLASH_DIAGONAL)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, this.magicNumber, false), this.magicNumber, true, AbstractGameAction.AttackEffect.NONE)); }
Example #8
Source File: Irradiate.java From FruityMod-StS with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { /*AbstractDungeon.actionManager.addToBottom(new SFXAction("THUNDERCLAP", 0.05f)); for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) { if (mo.isDeadOrEscaped()) continue; AbstractDungeon.actionManager.addToBottom(new VFXAction(new LightningEffect(mo.drawX, mo.drawY), 0.05f)); }*/ AbstractDungeon.actionManager.addToBottom(new DamageAllEnemiesAction(p, this.multiDamage, this.damageTypeForTurn, AbstractGameAction.AttackEffect.POISON)); for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) { AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new WeakPower(mo, this.magicNumber, false), this.magicNumber, true, AbstractGameAction.AttackEffect.NONE)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new VulnerablePower(mo, this.magicNumber, false), this.magicNumber, true, AbstractGameAction.AttackEffect.NONE)); } }
Example #9
Source File: Transference.java From FruityMod-StS with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { int powerCount = GetPowerCount(p, "Weakened"); if (powerCount > 0) { AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, "Weakened")); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, powerCount, false), powerCount)); } powerCount = GetPowerCount(p, "Vulnerable"); if (powerCount > 0) { AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, "Vulnerable")); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, powerCount, false), powerCount)); } AbstractDungeon.actionManager.addToBottom(new DrawCardAction(p, this.magicNumber)); }
Example #10
Source File: Umbra.java From FruityMod-StS with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { if (p.hasPower(VulnerablePower.POWER_ID) || p.hasPower(FrailPower.POWER_ID)) { addToBot(new GainBlockAction(p, block)); } if (p.hasPower(WeakPower.POWER_ID)) { addToBot(new DamageAction(m, new DamageInfo(p, damage, damageTypeForTurn), AbstractGameAction.AttackEffect.FIRE)); } }
Example #11
Source File: ForceRippleAction.java From FruityMod-StS with MIT License | 5 votes |
@Override public void update() { int effect = EnergyPanel.totalCount; if (this.energyOnUse != -1) { effect = this.energyOnUse; } if (this.p.hasRelic("Chemical X")) { effect += 2; this.p.getRelic("Chemical X").flash(); } if (effect > 0) { for (int i = 0; i < effect; i++) { AbstractDungeon.actionManager.addToBottom(new SFXAction("ATTACK_HEAVY")); AbstractDungeon.actionManager.addToBottom(new VFXAction(this.p, new CleaveEffect(), 0.0f)); AbstractDungeon.actionManager.addToBottom(new DamageAction(this.m, new DamageInfo(p, this.damage, this.damageType), AbstractGameAction.AttackEffect.SLASH_DIAGONAL)); } AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(p, p, new VulnerablePower(p, this.energyOnUse, false), this.energyOnUse, true, AbstractGameAction.AttackEffect.NONE)); AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(p, p, new WeakPower(p, this.energyOnUse, false), this.energyOnUse, true, AbstractGameAction.AttackEffect.NONE)); AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(p, p, new FrailPower(p, this.energyOnUse, false), this.energyOnUse, true, AbstractGameAction.AttackEffect.NONE)); if (!this.freeToPlayOnce) { this.p.energy.use(EnergyPanel.totalCount); } } this.isDone = true; }
Example #12
Source File: PrestidigitationPower.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void atStartOfTurn() { AbstractCreature target = AbstractDungeon.getRandomMonster(); if (target != null) { this.flash(); AbstractPower effect = AbstractDungeon.cardRandomRng.randomBoolean() ? new WeakPower(target, amount, !owner.isPlayer) : new VulnerablePower(target, amount, !owner.isPlayer); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(target, owner, effect, amount)); } }
Example #13
Source File: Chamomile.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void useMaterialComponent(AbstractPlayer p, AbstractMonster m) { addToBot(new RemoveSpecificPowerAction(p, p, FrailPower.POWER_ID)); if (upgraded) { addToBot(new RemoveSpecificPowerAction(p, p, VulnerablePower.POWER_ID)); } addToBot(new RemoveSpecificPowerAction(p, p, WeakPower.POWER_ID)); }
Example #14
Source File: FaerieFire.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster mo) { AbstractMemory currentMemory = MemoryManager.forPlayer(p).currentMemory; if (currentMemory == null) { return; } for(AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) { AbstractPower debuff = currentMemory.memoryType == MemoryType.SIN ? new VulnerablePower(m, magicNumber, false) : new WeakPower(m, magicNumber, false); addToBot(new ApplyPowerAction(m, p, debuff)); } }
Example #15
Source File: GatheringEvil.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { if (magicNumber > 0) { addToBot(new ApplyPowerAction(p, p, new StrengthPower(p, magicNumber * metaMagicNumber))); addToBot(new ApplyPowerAction(p, p, new VulnerablePower(p, magicNumber * urMagicNumber, false))); } }
Example #16
Source File: Taunt.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster abstractMonster) { addToBot(new ApplyPowerAction(p, p, new IntangiblePlayerPower(p, urMagicNumber))); for (AbstractMonster m : AbstractDungeon.getMonsters().monsters) { addToBot(new ApplyPowerAction(m, p, new VulnerablePower(m, magicNumber, false))); } }
Example #17
Source File: Apparate.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster abstractMonster) { addToBot(new ApplyPowerAction(p, p, new VulnerablePower(p, urMagicNumber, false))); addToBot(new VFXAction(new CleaveEffect())); this.addToBot(new DamageAllEnemiesAction(p, this.multiDamage, this.damageTypeForTurn, AbstractGameAction.AttackEffect.NONE)); for (AbstractMonster m : AbstractDungeon.getMonsters().monsters) { addToBot(new ApplyPowerAction(m, p, new VulnerablePower(m, magicNumber, false))); } }
Example #18
Source File: Shake.java From jorbs-spire-mod with MIT License | 5 votes |
@Override public void use(AbstractPlayer p, AbstractMonster abstractMonster) { if (abstractMonster.hasPower(VulnerablePower.POWER_ID)) { addToBot(new DrawCardAction(p, magicNumber)); } addToBot(new ApplyPowerAction(abstractMonster, p, new VulnerablePower(abstractMonster, urMagicNumber, false))); }
Example #19
Source File: Shake.java From jorbs-spire-mod with MIT License | 5 votes |
private boolean isEligibleForExtraEffect() { for (AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) { if (!m.isDeadOrEscaped() && m.hasPower(VulnerablePower.POWER_ID)) { return true; } } return false; }
Example #20
Source File: EnvyMemory.java From jorbs-spire-mod with MIT License | 4 votes |
@Override public void onRemember() { AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(owner, owner, new VulnerablePower(owner, VULNERABLE_ON_REMEMBER, false), VULNERABLE_ON_REMEMBER)); }
Example #21
Source File: EnvyMemory.java From jorbs-spire-mod with MIT License | 4 votes |
private void applyPassiveVulnerable(AbstractMonster monster) { AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(monster, owner, new VulnerablePower(monster, VULNERABLE_ON_TARGET_ENEMY, false), VULNERABLE_ON_TARGET_ENEMY)); }
Example #22
Source File: Flame.java From jorbs-spire-mod with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { addToBot(new ApplyPowerAction(m, p, new BurningPower(m, p, magicNumber, false))); addToBot(new ApplyPowerAction(m, p, new VulnerablePower(m, urMagicNumber, false))); }
Example #23
Source File: DimensionDoor.java From FruityMod-StS with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new IntangiblePlayerPower(p, this.magicNumber), this.magicNumber)); addToBot(new ApplyPowerAction(p, p, new VulnerablePower(p, 2, false), 2)); }
Example #24
Source File: Eye.java From jorbs-spire-mod with MIT License | 4 votes |
@Override public void useMaterialComponent(AbstractPlayer p, AbstractMonster m) { addToBot(new ApplyPowerAction(m, p, new VulnerablePower(m, this.magicNumber, false), this.magicNumber)); }
Example #25
Source File: SiphonPower.java From FruityMod-StS with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom(new DamageAction((AbstractCreature) m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SLASH_VERTICAL)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new StrengthPower(p, STRENGTH_GAIN_AMT), STRENGTH_GAIN_AMT)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, this.magicNumber, false), this.magicNumber)); }
Example #26
Source File: Wail.java From jorbs-spire-mod with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster abstractMonster) { addToBot(new ApplyPowerAction(abstractMonster, p, new VulnerablePower(abstractMonster, urMagicNumber, false))); addToBot(new DrawCardAction(p, magicNumber)); }