com.megacrit.cardcrawl.powers.ArtifactPower Java Examples
The following examples show how to use
com.megacrit.cardcrawl.powers.ArtifactPower.
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: Convergence.java From FruityMod-StS with MIT License | 6 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { int totalPowerCount = 0; for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) { int powerCount = GetPowerCount(mo, "Artifact"); if (powerCount == 0) continue; totalPowerCount += powerCount; AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(mo, p, "Artifact")); } AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new ArtifactPower(p, ARTIFACT_AMT), ARTIFACT_AMT)); if (totalPowerCount > 0) { AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new ArtifactPower(p, totalPowerCount), totalPowerCount)); } }
Example #2
Source File: CounterspellAction.java From jorbs-spire-mod with MIT License | 5 votes |
public void update() { if (this.monster != null && IntentUtils.isDebuffIntent(this.monster.intent)) { AbstractDungeon.actionManager.addToBottom( new ApplyPowerAction(this.owner, this.owner, new ArtifactPower(this.owner, this.amount), this.amount)); } else { AbstractDungeon.effectList.add(new ThoughtBubble(AbstractDungeon.player.dialogX, AbstractDungeon.player.dialogY, 3.0F, TEXT[0], true)); } this.isDone = true; }
Example #3
Source File: ApplyTemporaryDebuffAction.java From jorbs-spire-mod with MIT License | 5 votes |
public void update() { AbstractDungeon.actionManager.addToTop(applyPowerAction); AbstractCreature target = applyPowerAction.target; if (target != null && !target.isDeadOrEscaped() && !target.hasPower(ArtifactPower.POWER_ID)) { setupUndoDebuff.run(); } isDone = true; }
Example #4
Source File: RunicBindingPower.java From FruityMod-StS with MIT License | 5 votes |
@Override public void atStartOfTurnPostDraw() { flash(); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction( this.owner, this.owner, new ArtifactPower(this.owner, this.amount), this.amount)); }
Example #5
Source File: RodOfNegation.java From FruityMod-StS with MIT License | 5 votes |
@Override public void atBattleStart() { AbstractDungeon.actionManager.addToBottom( new RelicAboveCreatureAction(AbstractDungeon.player, this)); this.flash(); AbstractPlayer p = AbstractDungeon.player; AbstractDungeon.actionManager.addToBottom(new DiscardWithCallbackAction( p, p, DISCARD_AMT, false, true, false, false, new IDiscardCallback() { @Override public void processCard(AbstractCard c) { AbstractDungeon.actionManager.addToTop( new ApplyPowerAction(p, p, new ArtifactPower(p, ARTIFACT_PER_DISCARD), ARTIFACT_PER_DISCARD)); } })); }
Example #6
Source File: Withdraw.java From jorbs-spire-mod with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { addToBot(new ApplyPowerAction(p, p, new ArtifactPower(p, magicNumber))); addToBot(new GainBlockAction(p, p, block)); }
Example #7
Source File: Disperse.java From FruityMod-StS with MIT License | 4 votes |
@Override public void use(AbstractPlayer p, AbstractMonster m) { AbstractDungeon.actionManager.addToBottom(new GainBlockAction(p, p, this.block)); AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new ArtifactPower(p, this.magicNumber), this.magicNumber)); }