Skip to content

Commit

Permalink
bug fixes, other tweaks and changes, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkVexon committed Jan 26, 2020
1 parent cde34ca commit d5efa88
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 30 deletions.
5 changes: 2 additions & 3 deletions src/main/java/theHexaghost/cards/FastForward.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ public FastForward() {
}

public void use(AbstractPlayer p, AbstractMonster m) {
atb(new AdvanceAction());
atb(new ChargeCurrentFlameAction());
if (upgraded) atb(new AdvanceAction());

atb(new ChargeCurrentFlameAction());
atb(new AdvanceAction());
}

public void upgrade() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/theHexaghost/cards/Ghostwalk.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import sneckomod.CardIgnore;
import theHexaghost.actions.RetractAction;
import theHexaghost.powers.EtherealRefundPower;
import theHexaghost.util.CardIgnore;

@CardIgnore
public class Ghostwalk extends AbstractHexaCard {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/theHexaghost/cards/PowerFromBeyond.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public boolean canUse(AbstractPlayer p, AbstractMonster m) {

@Override
public void triggerOnExhaust() {
applyToSelf(new EnergizedBluePower(AbstractDungeon.player, magicNumber));
applyToSelf(new EnergizedBluePower(AbstractDungeon.player, 1));
applyToSelf(new DrawCardNextTurnPower(AbstractDungeon.player, magicNumber));
}

Expand All @@ -40,6 +40,8 @@ public void upgrade() {
if (!upgraded) {
upgradeName();
upgradeMagicNumber(UPG_MAGIC);
rawDescription = UPGRADE_DESCRIPTION;
initializeDescription();
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/theHexaghost/cards/TimeWarp.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class TimeWarp extends AbstractHexaCard implements OnAdvanceOrRetractSubs
private static final int UPG_DAMAGE = 2;

public TimeWarp() {
super(ID, 2, CardType.ATTACK, CardRarity.UNCOMMON, CardTarget.ENEMY);
super(ID, 0, CardType.ATTACK, CardRarity.UNCOMMON, CardTarget.ENEMY);
baseDamage = DAMAGE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public String getDescription() {
s = "Ignited. ";
}
if (GhostflameHelper.activeGhostFlame == this) {
s = s + "#yActive. Ignites after a #yPower is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
s = s + "#yActive. #yIgnites after a #yPower is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
} else {
s = s + "Inactive. Ignites after a #yPower is played while #yActive.";
s = s + "Inactive. #yIgnites after a #yPower is played while #yActive.";
}
int x = block;
if (AbstractDungeon.player.hasPower(EnhancePower.POWER_ID)) {
x += AbstractDungeon.player.getPower(EnhancePower.POWER_ID).amount;
}
return s + " NL #y Ignition: When Ignited, gain #b" + x + " #yBlock and #b1 #yStrength.";
return s + " NL #yIgnition: When #yIgnited, gain #b" + x + " #yBlock and #b1 #yStrength.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ public String getDescription() {
if (GhostflameHelper.activeGhostFlame == this) {
int x = (2 - skillsPlayedThisTurn);
if (x == 1) {
s = s + "#yActive. Ignites after #b" + x + " #ySkill is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
s = s + "#yActive. #yIgnites after #b" + x + " #ySkill is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
} else {
s = s + "#yActive. Ignites after #b" + x + " #ySkills are played this turn.";
s = s + "#yActive. #yIgnites after #b" + x + " #ySkills are played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
}
} else {
s = s + "Inactive. Play #b2 #ySkills while #yActive to Charge.";
s = s + "Inactive. #yIgnites after #b2 #ySkills are played while #yActive.";
}
int x = damage;
if (AbstractDungeon.player.hasPower(EnhancePower.POWER_ID)) {
x += AbstractDungeon.player.getPower(EnhancePower.POWER_ID).amount;
}
return s + " NL Ignition: When Ignited, deal #b" + x + " damage to a random enemy twice.";
return s + " NL #yIgnition: When #yIgnited, deal #b" + x + " damage to a random enemy twice.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public void onCharge() {
x += AbstractDungeon.player.getPower(EnhancePower.POWER_ID).amount;
}
for (int j = GhostflameHelper.hexaGhostFlames.size() - 1; j >= 0; j--) {
//i have no ghostflame. goodnight
AbstractGhostflame gf = GhostflameHelper.hexaGhostFlames.get(j);
if (gf.charged) {
att(new ExtinguishAction(gf));
Expand Down Expand Up @@ -87,6 +86,6 @@ public String getDescription() {
if (AbstractDungeon.player.hasPower(EnhancePower.POWER_ID)) {
x += AbstractDungeon.player.getPower(EnhancePower.POWER_ID).amount;
}
return s + " NL Ignition: When Ignited, deal #b" + x + " damage to a random enemy for each #yCharged #yGhostflame, then #yExtinguish them.";
return s + " NL #yIgnition: When #yIgnited, deal #b" + x + " damage to a random enemy for each #yIgnited #yGhostflame, then #yExtinguish them.";
}
}
8 changes: 4 additions & 4 deletions src/main/java/theHexaghost/ghostflames/SearingGhostflame.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ public String getDescription() {
if (GhostflameHelper.activeGhostFlame == this) {
int x = (2 - attacksPlayedThisTurn);
if (x == 1) {
s = s + "#yActive. Ignites after #b" + x + " #yAttack is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
s = s + "#yActive. #yIgnites after #b" + x + " #yAttack is played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
} else {
s = s + "#yActive. Ignites after #b" + x + " #yAttacks are played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
s = s + "#yActive. #yIgnites after #b" + x + " #yAttacks are played this turn. NL At the end of your turn, #yAdvance to the next Ghostflame.";
}
} else {
s = s + "Inactive. Ignites after #b2 #yAttacks are played while #yActive.";
s = s + "Inactive. #yIgnites after #b2 #yAttacks are played while #yActive.";
}
int x = magic;
if (AbstractDungeon.player.hasPower(EnhancePower.POWER_ID)) {
x += AbstractDungeon.player.getPower(EnhancePower.POWER_ID).amount;
}
return s + " NL Ignition: When Ignited, apply #b" + x + " #yBurn to a random enemy.";
return s + " NL #yIgnition: When #yIgnited, apply #b" + x + " #yBurn to a random enemy.";

}
}
6 changes: 3 additions & 3 deletions src/main/java/theHexaghost/powers/ApocalypticArmorPower.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ApocalypticArmorPower extends AbstractPower implements OnChargeSubs
private static final Texture tex32 = TextureLoader.getTexture(HexaMod.getModID() + "Resources/images/powers/ApocalypseArmor32.png");

public ApocalypticArmorPower(final int amount) {
this.name = "Apocalypse Armor";
this.name = "Doomsday";
this.ID = POWER_ID;
this.owner = AbstractDungeon.player;
this.amount = amount;
Expand Down Expand Up @@ -61,8 +61,8 @@ public void onCharge(AbstractGhostflame g) {
@Override
public void updateDescription() {
if (amount >= GhostflameHelper.hexaGhostFlames.size())
description = "The next time you Charge the Inferno Ghostflame and all #b" + amount + " Ghostflames are Charged, take an additional turn.";
description = "The next time you Charge the Inferno Ghostflame and all #b" + amount + " Ghostflames are Charged, end your turn and take an additional turn.";
else
description = "Whenver you Charge the Inferno Ghostflame and at least #b" + amount + " Ghostflames are Charged, take an additional turn.";
description = "Whenver you Charge the Inferno Ghostflame and at least #b" + amount + " Ghostflames are Charged, end your turn and take an additional turn.";
}
}
2 changes: 1 addition & 1 deletion src/main/java/theHexaghost/powers/BurnPower.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void atStartOfTurn() {

@Override
public void updateDescription() {
description = "At the start of its turn, loses #b" + amount + " HP, then Burn is halved (rounding up).";
description = "At the start of its turn, loses #b" + amount + " HP, then Burn is halved (rounding down).";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public GainStrengthThatGoesAwayPower(final int amount) {
this.updateDescription();
}

public boolean activated = false;
public boolean activated = true;

@Override
public void updateDescription() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"hexamod:TimeWarp": {
"NAME": "Time Warp",
"DESCRIPTION": "Deal !D! damage to a random enemy. NL If the first Ghostflame is not hexamod:Active, hexamod:Retract and repeat this."
"DESCRIPTION": "Deal !D! damage. NL Whenever you hexamod:Advance or hexamod:Retract, return this from the discard pile to your hand."
},
"hexamod:EmpoweredFlame": {
"NAME": "Empowered Flame",
Expand Down Expand Up @@ -189,7 +189,7 @@
},
"hexamod:PowerFromBeyond": {
"NAME": "Power from Beyond",
"DESCRIPTION": "Unplayable. NL Ethereal. NL If this card is Exhausted, gain [E] and draw !M! cards next turn.",
"DESCRIPTION": "Unplayable. NL Ethereal. NL If this card is Exhausted, gain [E] and draw !M! card next turn.",
"UPGRADE_DESCRIPTION": "Unplayable. NL Ethereal. NL If this card is Exhausted, gain [E] and draw !M! cards next turn."
},
"hexamod:BurningTouch": {
Expand Down Expand Up @@ -309,8 +309,8 @@
},
"hexamod:ApocalypticArmor": {
"NAME": "Doomsday",
"DESCRIPTION": "The next time you hexamod:Ignite the Inferno Ghostflame and all !M! Ghostflames are hexamod:Ignited, take an extra turn.",
"UPGRADE_DESCRIPTION": "The next time you hexamod:Ignite the Inferno Ghostflame and at least !M! Ghostflames are hexamod:Ignited, take an extra turn."
"DESCRIPTION": "The next time you hexamod:Ignite the Inferno Ghostflame and all !M! Ghostflames are hexamod:Ignited, end your turn and take an extra turn.",
"UPGRADE_DESCRIPTION": "The next time you hexamod:Ignite the Inferno Ghostflame and at least !M! Ghostflames are hexamod:Ignited, end your turn and take an extra turn."
},
"hexamod:FirstSeal": {
"NAME": "First Seal",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"PROPER_NAME": "Ignite",
"NAMES": [
"ignite",
"ignited",
"unignited"
"ignited"
],
"DESCRIPTION": "Triggers the Ignition effect described on a Ghostflame."
},
Expand Down

0 comments on commit d5efa88

Please sign in to comment.