Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RattusInVitaReali committed Dec 21, 2018
1 parent 65408a7 commit 18e464a
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/ratmod/RatMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public void receiveEditCards() {
logger.info("Add Cards");
// Add the cards
BaseMod.addCard(new FanOfKnives());
BaseMod.addCard(new Lunge());
BaseMod.addCard(new Disembowel());
BaseMod.addCard(new OpeningStrike());
BaseMod.addCard(new ColdBlood());
BaseMod.addCard(new MimicPod());
Expand All @@ -91,6 +93,8 @@ public void receiveEditCards() {
logger.info("Making sure the cards are unlocked.");
// Unlock the cards
UnlockTracker.unlockCard(FanOfKnives.ID);
UnlockTracker.unlockCard(Lunge.ID);
UnlockTracker.unlockCard(Disembowel.ID);
UnlockTracker.unlockCard(OpeningStrike.ID);
UnlockTracker.unlockCard(ColdBlood.ID);
UnlockTracker.unlockCard(Shadowstep.ID);
Expand Down
79 changes: 79 additions & 0 deletions src/main/java/ratmod/cards/Disembowel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
package ratmod.cards;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.*;
import com.megacrit.cardcrawl.powers.*;
import com.megacrit.cardcrawl.cards.*;
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 ratmod.RatMod;

public class Disembowel extends CustomCard {

public static final String ID = RatMod.makeID("Disembowel");
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
public static final String IMG = RatMod.makePath(RatMod.DEFAULT_UNCOMMON_ATTACK);

public static final String NAME = cardStrings.NAME;
public static final String DESCRIPTION = cardStrings.DESCRIPTION;

private static final CardRarity RARITY = CardRarity.RARE;
private static final CardTarget TARGET = CardTarget.ENEMY;
private static final CardType TYPE = CardType.ATTACK;
public static final CardColor COLOR = CardColor.GREEN;

private static int COST = 2;
private static final int DAMAGE = 12;
private static final int NUM_DBF = 2;


public Disembowel() {
super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);
this.baseDamage = DAMAGE;
this.baseMagicNumber = NUM_DBF;
this.magicNumber = this.baseMagicNumber;

}

public void use(AbstractPlayer p, AbstractMonster m) {
AbstractDungeon.actionManager.addToBottom(new DamageAction(m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SLASH_HEAVY));
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 2) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, this.magicNumber, false), this.magicNumber));
}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 3) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, this.magicNumber, false), this.magicNumber));
}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 5) {
AbstractDungeon.actionManager.addToBottom(new DamageAction(m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SLASH_HEAVY));
}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 6) {
if (this.upgraded == true) {
AbstractCard s = new Disembowel();
s.upgrade();
AbstractDungeon.actionManager.addToBottom(new MakeTempCardInHandAction(s, 1));

} else {
AbstractDungeon.actionManager.addToBottom(new MakeTempCardInHandAction(new Disembowel(), 1));
}
}

}

public AbstractCard makeCopy() {
return new Disembowel();

}

public void upgrade() {
if (!this.upgraded) {
upgradeName();
this.initializeDescription();
this.upgradeMagicNumber(1);
this.upgradeDamage(3);
}
}
}
76 changes: 76 additions & 0 deletions src/main/java/ratmod/cards/Lunge.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package ratmod.cards;


import com.megacrit.cardcrawl.actions.common.*;
import com.megacrit.cardcrawl.cards.*;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.*;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import basemod.abstracts.CustomCard;
import ratmod.RatMod;

public class Lunge extends CustomCard {

public static final String ID = RatMod.makeID("Lunge");
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
public static final String IMG = RatMod.makePath(RatMod.DEFAULT_UNCOMMON_ATTACK);

public static final String NAME = cardStrings.NAME;
public static final String DESCRIPTION = cardStrings.DESCRIPTION;

private static final CardRarity RARITY = CardRarity.RARE;
private static final CardTarget TARGET = CardTarget.SELF;
private static final CardType TYPE = CardType.POWER;
public static final CardColor COLOR = CardColor.GREEN;

private static int COST = 2;
private static final int BLOCK = 8;
private static final int AMT = 5;


public Lunge() {
super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);
this.baseBlock = BLOCK;
this.block = this.baseBlock;
this.baseMagicNumber = AMT;
this.magicNumber = this.baseMagicNumber;

}

public void use(AbstractPlayer p, AbstractMonster m) {
AbstractDungeon.actionManager.addToBottom(new GainBlockAction(p, p, this.block));
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 2) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new NextTurnBlockPower(p, this.block), this.block));

}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 3) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new PlatedArmorPower(p, this.magicNumber), this.magicNumber));

}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 5) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new MetallicizePower(p, this.magicNumber), this.magicNumber));
}
if (AbstractDungeon.actionManager.cardsPlayedThisTurn.size() >= 6) {
AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new DexterityPower(p, this.magicNumber), this.magicNumber));

}

}

public AbstractCard makeCopy() {
return new Lunge();

}

public void upgrade() {
if (!this.upgraded) {
upgradeName();
this.initializeDescription();
upgradeBlock(3);
upgradeMagicNumber(2);
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/ModTheSpire.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "RatMod",
"author_list": ["Coach"],
"description": "It's a mod, I'm sure of it",
"version": "1.0.1",
"version": "1.0.2",
"sts_version": "10-25-2018",
"credits": "Big thanks to Reina code-wise and to Jedi for letting me borrow his main.jar (along with many other things but don't tell him!).",
"mts_version": "3.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
"NAME": "Opening Strike",
"DESCRIPTION": "Innate. Deal !D! damage twice. If this was the first card played this turn, deal !D! damage again. NL Exhaust."
},
"rat:Disembowel": {
"NAME": "Disembowel",
"DESCRIPTION": "Deal !D! damage. Combo 2: Apply !M! Weak. Combo 3: Apply !M! Vulnerable. Combo 5: Deal !D! damage again. Combo 6: Add a copy of this card to your hand."
},
"rat:Lunge": {
"NAME": "Lunge",
"DESCRIPTION": "Gain !B! Block. Combo 2: Gain !B! Block next turn. Combo 3: Gain !M! Plated Armor. Combo 5: Gain !M! Metalicize. Combo 6: Gain !M! Dexterity."
},
"rat:Sprint": {
"NAME": "Sprint",
"DESCRIPTION": "Draw !M! cards. NL Combo 2: Draw !M! more cards."
Expand Down

0 comments on commit 18e464a

Please sign in to comment.