Skip to content

Commit

Permalink
v.1.5.4 - Small code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyBazooka89 committed Dec 20, 2018
1 parent 9321418 commit 51987ac
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>StSMod</groupId>
<artifactId>StSModTheBlackbeard</artifactId>
<version>1.5.3</version>
<version>1.5.4</version>
<packaging>jar</packaging>
<name>StSModTheBlackbeard</name>
<description>Adds a new character to Slay the Spire, The Blackbeard.</description>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/blackbeard/TheBlackbeardMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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));
}
}
2 changes: 1 addition & 1 deletion src/main/resources/ModTheSpire.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 51987ac

Please sign in to comment.