Skip to content

Commit

Permalink
Purge now costs HP to play
Browse files Browse the repository at this point in the history
  • Loading branch information
twanvl committed Nov 10, 2018
1 parent 6bcc154 commit 7addb5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### v1.5.2
* Fix: Reflect Attack and Reflect Block happen during the Ornate Mirror's turn, not at start of turn. This means the power is applied after Poison, so the description now takes the amount of poison into account.
* Balance: Ornate Mirror: reduced Reflect powers to 40% (50% in ascension), and reduce attack damage
* Balance: Purge now costs 5 HP to play.

### v1.5.1
* Fix: Cube Rune power now works
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/conspire/cards/red/Purge.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package conspire.cards.red;

import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.actions.common.LoseHPAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.vfx.combat.OfferingEffect;

import basemod.abstracts.CustomCard;
import conspire.Conspire;
Expand All @@ -19,6 +22,7 @@ public class Purge extends CustomCard {
public static final String UPGRADE_DESCRIPTION = cardStrings.UPGRADE_DESCRIPTION;
public static final String[] EXTENDED_DESCRIPTION = cardStrings.EXTENDED_DESCRIPTION;
private static final int COST = 1;
private static final int HP_LOSS = 5;

public Purge() {
super(ID, NAME, Conspire.cardImage(ID), COST, DESCRIPTION, CardType.SKILL, CardColor.RED, CardRarity.RARE, CardTarget.NONE);
Expand All @@ -28,7 +32,8 @@ public Purge() {

@Override
public void use(AbstractPlayer p, AbstractMonster m) {
this.calculateCardDamage(m);
AbstractDungeon.actionManager.addToBottom(new VFXAction(new OfferingEffect(), 0.5f));
AbstractDungeon.actionManager.addToBottom(new LoseHPAction(p, p, HP_LOSS));
AbstractDungeon.actionManager.addToBottom(new PurgeAction(1, false, false, false, false));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"conspire:Purge": {
"NAME": "Purge",
"DESCRIPTION": "Exhaust a card in your hand and permanently remove it from your deck. NL Exhaust.",
"DESCRIPTION": "Lose 5 HP. NL Exhaust a card in your hand and permanently remove it from your deck. NL Exhaust.",
"EXTENDED_DESCRIPTION": [
"Exhaust and remove from your deck"
]
Expand Down

0 comments on commit 7addb5a

Please sign in to comment.