- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfiniteUpgradeAttack.java
More file actions
Latest commit
53 lines (44 loc) · 1.58 KB
/
Copy pathInfiniteUpgradeAttack.java
File metadata and controls
53 lines (44 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
packageexamplemod.cards.examples;
importbasemod.helpers.CardModifierManager;
importcom.megacrit.cardcrawl.actions.AbstractGameAction;
importcom.megacrit.cardcrawl.actions.common.DamageAction;
importcom.megacrit.cardcrawl.cards.AbstractCard;
importcom.megacrit.cardcrawl.cards.DamageInfo;
importcom.megacrit.cardcrawl.characters.AbstractPlayer;
importcom.megacrit.cardcrawl.monsters.AbstractMonster;
importexamplemod.cards.BaseCard;
importexamplemod.util.CardStats;
publicclassInfiniteUpgradeAttackextendsBaseCard {
publicstaticfinalStringID = makeID("InfiniteUpgradeAttack");
privatefinalstaticCardStatsCARD_STATS = newCardStats(
CardColor.COLORLESS,
CardType.ATTACK,
CardRarity.SPECIAL,
CardTarget.ENEMY,
1);
privatestaticfinalintDAMAGE = 4;
publicInfiniteUpgradeAttack() {
super(ID, CARD_STATS, false);
setDamage(DAMAGE);
setMagic(3);
}
publicbooleancanUpgrade() {
returntrue;
}
@Override
publicvoidupgrade() {
this.upgradeDamage(5 * this.timesUpgraded);
++this.timesUpgraded;
this.upgraded = true;
this.name = cardStrings.NAME + "+" + this.timesUpgraded;
this.initializeTitle();
}
@Override
publicvoiduse(AbstractPlayerp, AbstractMonsterm) {
addToBot(newDamageAction(m, newDamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SMASH));
}
@Override
publicAbstractCardmakeCopy() {
returnnewInfiniteUpgradeAttack();
}
}