From 51987ace483d84e47ad2ef441cf86fd2f2005191 Mon Sep 17 00:00:00 2001 From: JohnnyBazooka89 Date: Thu, 20 Dec 2018 13:51:29 +0100 Subject: [PATCH] v.1.5.4 - Small code refactoring --- pom.xml | 2 +- src/main/java/blackbeard/TheBlackbeardMod.java | 6 +++--- ...dFormAction.java => DamageWhenIntangibleEndsAction.java} | 4 ++-- .../blackbeard/powers/DamageWhenIntangibleEndsPower.java | 4 ++-- src/main/resources/ModTheSpire.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename src/main/java/blackbeard/actions/{UndeadFormAction.java => DamageWhenIntangibleEndsAction.java} (91%) diff --git a/pom.xml b/pom.xml index b1124eb7..8bcfe31e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ StSMod StSModTheBlackbeard - 1.5.3 + 1.5.4 jar StSModTheBlackbeard Adds a new character to Slay the Spire, The Blackbeard. diff --git a/src/main/java/blackbeard/TheBlackbeardMod.java b/src/main/java/blackbeard/TheBlackbeardMod.java index 2c228835..459557e3 100644 --- a/src/main/java/blackbeard/TheBlackbeardMod.java +++ b/src/main/java/blackbeard/TheBlackbeardMod.java @@ -43,7 +43,7 @@ public class TheBlackbeardMod implements PostInitializeSubscriber, public static final String DEFAULT_WEAPON_ORB_ID = "blackbeard:WeaponOrb"; //Mod metadata - private static final String MODNAME = "The Blackbeard"; + private static final String MOD_NAME = "The Blackbeard"; private static final String AUTHOR = "JohnnyBazooka89"; private static final String DESCRIPTION = "Adds The Blackbeard as a new playable character."; @@ -127,7 +127,7 @@ public void receivePostInitialize() { // Mod badge Texture badgeTexture = new Texture(BADGE_IMG); ModPanel settingsPanel = new ModPanel(); - BaseMod.registerModBadge(badgeTexture, MODNAME, AUTHOR, DESCRIPTION, settingsPanel); + BaseMod.registerModBadge(badgeTexture, MOD_NAME, AUTHOR, DESCRIPTION, settingsPanel); } @Override @@ -136,7 +136,7 @@ public void receiveEditCharacters() { logger.info("Add " + TheBlackbeardEnum.BLACKBEARD_CLASS.toString()); BaseMod.addCharacter( - new TheBlackbeard("The Blackbeard", TheBlackbeardEnum.BLACKBEARD_CLASS), + new TheBlackbeard(MOD_NAME, TheBlackbeardEnum.BLACKBEARD_CLASS), BLACKBEARD_BUTTON, BLACKBEARD_PORTRAIT, TheBlackbeardEnum.BLACKBEARD_CLASS diff --git a/src/main/java/blackbeard/actions/UndeadFormAction.java b/src/main/java/blackbeard/actions/DamageWhenIntangibleEndsAction.java similarity index 91% rename from src/main/java/blackbeard/actions/UndeadFormAction.java rename to src/main/java/blackbeard/actions/DamageWhenIntangibleEndsAction.java index f4a09663..feee4496 100644 --- a/src/main/java/blackbeard/actions/UndeadFormAction.java +++ b/src/main/java/blackbeard/actions/DamageWhenIntangibleEndsAction.java @@ -10,12 +10,12 @@ import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.powers.IntangiblePlayerPower; -public class UndeadFormAction extends AbstractGameAction { +public class DamageWhenIntangibleEndsAction extends AbstractGameAction { private AbstractPlayer p; private int damageAmount; - public UndeadFormAction(int damageAmount) { + public DamageWhenIntangibleEndsAction(int damageAmount) { this.actionType = ActionType.DAMAGE; this.p = AbstractDungeon.player; this.damageAmount = damageAmount; diff --git a/src/main/java/blackbeard/powers/DamageWhenIntangibleEndsPower.java b/src/main/java/blackbeard/powers/DamageWhenIntangibleEndsPower.java index 2b6ab32d..be69cf41 100644 --- a/src/main/java/blackbeard/powers/DamageWhenIntangibleEndsPower.java +++ b/src/main/java/blackbeard/powers/DamageWhenIntangibleEndsPower.java @@ -1,6 +1,6 @@ package blackbeard.powers; -import blackbeard.actions.UndeadFormAction; +import blackbeard.actions.DamageWhenIntangibleEndsAction; import com.megacrit.cardcrawl.core.AbstractCreature; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; @@ -32,6 +32,6 @@ public void updateDescription() { @Override public void atStartOfTurn() { - AbstractDungeon.actionManager.addToBottom(new UndeadFormAction(this.amount)); + AbstractDungeon.actionManager.addToBottom(new DamageWhenIntangibleEndsAction(this.amount)); } } \ No newline at end of file diff --git a/src/main/resources/ModTheSpire.json b/src/main/resources/ModTheSpire.json index e10e6f2b..15957d7a 100644 --- a/src/main/resources/ModTheSpire.json +++ b/src/main/resources/ModTheSpire.json @@ -5,7 +5,7 @@ "JohnnyBazooka89" ], "description": "Adds The Blackbeard as a new playable character. More info: https://github.com/JohnnyBazooka89/StSModTheBlackbeard", - "version": "1.5.3", + "version": "1.5.4", "dependencies": [ "basemod" ],