-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
447 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package necromod.cards; | ||
|
||
import com.megacrit.cardcrawl.cards.AbstractCard; | ||
import com.megacrit.cardcrawl.characters.AbstractPlayer; | ||
import com.megacrit.cardcrawl.dungeons.AbstractDungeon; | ||
import com.megacrit.cardcrawl.monsters.AbstractMonster; | ||
import com.megacrit.cardcrawl.powers.VulnerablePower; | ||
import com.megacrit.cardcrawl.powers.WeakPower; | ||
import com.megacrit.cardcrawl.core.*; | ||
//import com.megacrit.cardcrawl.powers.*; | ||
import com.megacrit.cardcrawl.actions.common.*; | ||
import com.megacrit.cardcrawl.actions.AbstractGameAction; | ||
import com.megacrit.cardcrawl.cards.DamageInfo; | ||
|
||
import basemod.abstracts.CustomCard; | ||
import necromod.NecroMod; | ||
import necromod.patches.AbstractCardEnum; | ||
|
||
public class Blood_Curse extends CustomCard { | ||
public static final String ID = "Blood_Curse"; | ||
public static final String NAME = "Blood Curse"; | ||
private static final int COST = 1; | ||
private static final int ATTACK_DMG = 4; | ||
public static final String DESCRIPTION = "Deal !D! damage. NL Apply !M! Weak. Apply !M! Vulnerable."; | ||
private static final int UPGRADE_PLUS_DMG = 3; | ||
private static final int POOL = 1; | ||
public final int AMOUNT = 1; | ||
|
||
public Blood_Curse() { | ||
super (ID, NAME, NecroMod.makePath(NecroMod.BLOOD_CURSE), COST, DESCRIPTION, | ||
AbstractCard.CardType.ATTACK, AbstractCardEnum.WHITE, | ||
AbstractCard.CardRarity.COMMON, AbstractCard.CardTarget.ENEMY, POOL); | ||
|
||
this.baseDamage = this.damage = ATTACK_DMG; | ||
this.baseMagicNumber = this.magicNumber = AMOUNT; | ||
|
||
} | ||
|
||
@Override | ||
public void use(AbstractPlayer p, AbstractMonster m) { | ||
|
||
|
||
AbstractDungeon.actionManager.addToBottom(new DamageAction((AbstractCreature)m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.POISON)); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, this.magicNumber, false), this.magicNumber)); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, this.magicNumber, false), this.magicNumber)); | ||
|
||
} | ||
|
||
@Override | ||
public AbstractCard makeCopy() { | ||
return new Blood_Curse(); | ||
} | ||
|
||
@Override | ||
public void upgrade() { | ||
if (!this.upgraded) { | ||
this.upgradeName(); | ||
this.upgradeDamage(UPGRADE_PLUS_DMG); | ||
this.upgradeMagicNumber(1); | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package necromod.cards; | ||
|
||
import com.megacrit.cardcrawl.cards.*; | ||
import com.megacrit.cardcrawl.localization.*; | ||
import com.megacrit.cardcrawl.characters.*; | ||
import com.megacrit.cardcrawl.monsters.*; | ||
import com.megacrit.cardcrawl.powers.StrengthPower; | ||
import com.megacrit.cardcrawl.vfx.ThoughtBubble; | ||
import com.megacrit.cardcrawl.dungeons.*; | ||
import com.megacrit.cardcrawl.actions.common.*; | ||
import com.megacrit.cardcrawl.core.*; | ||
import com.megacrit.cardcrawl.powers.DexterityPower; | ||
import java.util.*; | ||
|
||
import basemod.abstracts.CustomCard; | ||
import necromod.NecroMod; | ||
import necromod.patches.AbstractCardEnum; | ||
|
||
public class Consume_Illness extends CustomCard{ | ||
|
||
public static final String ID = "Consume_Illness"; | ||
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID); | ||
public static final String NAME = cardStrings.NAME; | ||
public static final String DESCRIPTION = cardStrings.DESCRIPTION; | ||
private static final int COST = 1; | ||
private static final int POOL = 1; | ||
public static final String[] EXTENDED_DESCRIPTION = new String[] { | ||
"I do not have any negative effects." | ||
}; | ||
|
||
public Consume_Illness() { | ||
super(ID, NAME, NecroMod.makePath(NecroMod.CONSUME_ILLNESS), COST, DESCRIPTION, AbstractCard.CardType.SKILL, | ||
AbstractCardEnum.WHITE, AbstractCard.CardRarity.COMMON, AbstractCard.CardTarget.SELF, POOL); | ||
this.baseMagicNumber = this.magicNumber = 1; | ||
this.exhaust = true; | ||
|
||
} | ||
|
||
public void use(AbstractPlayer p, AbstractMonster m) { | ||
|
||
ArrayList<String> Debuff = new ArrayList<String>(); | ||
Debuff.add("Poison"); | ||
Debuff.add("Weakened"); | ||
Debuff.add("Frail"); | ||
Debuff.add("Vulnerable"); | ||
|
||
ArrayList<String> Random = new ArrayList<String>(); | ||
|
||
for(String d : Debuff) { | ||
if (p.hasPower(d)){ | ||
Random.add(d); | ||
} | ||
} | ||
if(p.hasPower("Strength") && (p.getPower("Strength").amount < 0)){ | ||
Random.add("Strength"); | ||
} | ||
|
||
if(p.hasPower("Dexterity") && (p.getPower("Dexterity").amount < 0)){ | ||
Random.add("Dexterity"); | ||
} | ||
|
||
if(!Random.isEmpty()) { | ||
int i = Random.size(); | ||
int r = (int) Math.random()*i; | ||
|
||
if(!Random.get(r).equals("Strength") && !Random.get(r).equals("Dexterity")) { | ||
AbstractDungeon.actionManager.addToTop(new RemoveSpecificPowerAction(p, p, Random.get(r))); | ||
AbstractDungeon.actionManager.addToBottom(new HealAction(p, p, 3)); | ||
} | ||
else if(Random.get(r).equals("Strength")){ | ||
int amount = -1*(p.getPower("Strength").amount); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new StrengthPower(p, amount), amount)); | ||
AbstractDungeon.actionManager.addToBottom(new HealAction(p, p, 3)); | ||
} | ||
else { | ||
int amount = -1*(p.getPower("Strength").amount); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new DexterityPower(p, amount), amount)); | ||
AbstractDungeon.actionManager.addToBottom(new HealAction(p, p, 3)); | ||
} | ||
|
||
|
||
} | ||
else { | ||
AbstractDungeon.effectList.add(new ThoughtBubble(p.dialogX, p.dialogY, 3.0f, Consume_Illness.EXTENDED_DESCRIPTION[0], true)); | ||
} | ||
|
||
} | ||
|
||
public AbstractCard makeCopy() { | ||
return new Consume_Illness(); | ||
} | ||
|
||
public void upgrade() { | ||
if (!this.upgraded) { | ||
this.upgradeName(); | ||
this.upgradeBaseCost(0); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package necromod.cards; | ||
|
||
import com.megacrit.cardcrawl.cards.*; | ||
import com.megacrit.cardcrawl.localization.*; | ||
import com.megacrit.cardcrawl.characters.*; | ||
import com.megacrit.cardcrawl.monsters.*; | ||
import com.megacrit.cardcrawl.dungeons.*; | ||
import com.megacrit.cardcrawl.vfx.combat.*; | ||
import com.megacrit.cardcrawl.actions.animations.*; | ||
import com.megacrit.cardcrawl.actions.common.*; | ||
import com.megacrit.cardcrawl.core.*; | ||
|
||
import basemod.abstracts.CustomCard; | ||
import necromod.NecroMod; | ||
import necromod.actions.common.NegativeLevelAction; | ||
import necromod.patches.AbstractCardEnum; | ||
import necromod.powers.NegativeLevelsPower; | ||
|
||
public class Negative_Energy_Mist extends CustomCard { | ||
public static final String ID = "Negative_Energy_Mist"; | ||
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID); | ||
public static final String NAME = cardStrings.NAME; | ||
public static final String DESCRIPTION = cardStrings.DESCRIPTION; | ||
private static final int COST = 1; | ||
private static final int POOL = 1; | ||
|
||
public Negative_Energy_Mist() { | ||
super(ID, NAME, NecroMod.makePath(NecroMod.NEGATIVE_ENERGY_MIST), COST, DESCRIPTION, AbstractCard.CardType.SKILL, | ||
AbstractCardEnum.WHITE, AbstractCard.CardRarity.COMMON, AbstractCard.CardTarget.ALL_ENEMY, POOL); | ||
this.baseMagicNumber = this.magicNumber = 2; | ||
this.exhaust = true; | ||
} | ||
|
||
public void use(AbstractPlayer p, AbstractMonster m) { | ||
AbstractDungeon.actionManager.addToBottom(new VFXAction(p, new ShockWaveEffect(p.hb.cX, p.hb.cY, Settings.GREEN_TEXT_COLOR, ShockWaveEffect.ShockWaveType.CHAOTIC), 1.5f)); | ||
for (final AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) { | ||
AbstractDungeon.actionManager.addToBottom(new NegativeLevelAction(mo, p, this.baseMagicNumber)); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new NegativeLevelsPower(mo, p, this.baseMagicNumber), this.baseMagicNumber)); | ||
} | ||
|
||
} | ||
|
||
public AbstractCard makeCopy() { | ||
return new Negative_Energy_Mist(); | ||
} | ||
|
||
public void upgrade() { | ||
if (!this.upgraded) { | ||
this.upgradeName(); | ||
this.exhaust = false; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package necromod.cards; | ||
|
||
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; | ||
import com.megacrit.cardcrawl.actions.common.GainBlockAction; | ||
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 basemod.abstracts.CustomCard; | ||
import necromod.NecroMod; | ||
import necromod.patches.AbstractCardEnum; | ||
import necromod.powers.NegativeShieldPower; | ||
|
||
public class Negative_Energy_Shield extends CustomCard { | ||
public static final String ID = "Negative_Energy_Shield"; | ||
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID); | ||
public static final String NAME = cardStrings.NAME; | ||
public static final String DESCRIPTION = cardStrings.DESCRIPTION; | ||
private static final int COST = 1; | ||
private static final int BLOCK_AMT = 8; | ||
private static final int UPGRADE_PLUS_BLOCK = 3; | ||
private static final int POOL = 0; | ||
|
||
public Negative_Energy_Shield() { | ||
super(ID, NAME, NecroMod.makePath(NecroMod.NEGATIVE_ENERGY_SHIELD), COST, DESCRIPTION, AbstractCard.CardType.SKILL, | ||
AbstractCardEnum.WHITE, AbstractCard.CardRarity.BASIC, AbstractCard.CardTarget.SELF, POOL); | ||
this.baseBlock = BLOCK_AMT; | ||
|
||
} | ||
|
||
public void use(AbstractPlayer p, AbstractMonster m) { | ||
|
||
AbstractDungeon.actionManager.addToBottom(new GainBlockAction(p, p, this.block)); | ||
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new NegativeShieldPower(p, 1), 1)); | ||
} | ||
|
||
public AbstractCard makeCopy() { | ||
return new Negative_Energy_Shield(); | ||
} | ||
|
||
public void upgrade() { | ||
if (!this.upgraded) { | ||
upgradeName(); | ||
upgradeBlock(UPGRADE_PLUS_BLOCK); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.