Skip to content

Commit

Permalink
0.10.4 Hotfix
Browse files Browse the repository at this point in the history
	Bug: Recurrance and Pendulum no longer crash on tooltip.
	Bug: Fixed Pattern Shift support with Corrupt Heart.
	Bug: Fixed Pattern Shift support with Spire Shield.
	Bug: Fixed Pattern Shift support with Spire Spear.
	Bug: Pendulum now works with Beat of Death.
  • Loading branch information
Tempus committed Oct 30, 2018
1 parent 7ce4ab4 commit 45472cc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/main/java/actions/PatternShiftAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,20 @@ public static boolean restorePreviewedSpecialCases(AbstractMonster m) {
ReflectionHacks.setPrivate(hexa, Hexaghost.class, "orbActiveCount", orbActiveCount-1);
}
break;

case "CorruptHeart":
turnCount = (int)ReflectionHacks.getPrivate(m, m.getClass(), "moveCount");
ReflectionHacks.setPrivate(m, m.getClass(), "moveCount", turnCount - 1);
break;

case "SpireShield":
turnCount = (int)ReflectionHacks.getPrivate(m, m.getClass(), "moveCount");
ReflectionHacks.setPrivate(m, m.getClass(), "moveCount", turnCount - 1);
break;
case "SpireSpear":
turnCount = (int)ReflectionHacks.getPrivate(m, m.getClass(), "moveCount");
ReflectionHacks.setPrivate(m, m.getClass(), "moveCount", turnCount - 1);
break;
}

return true;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/cards/Pendulum.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import com.megacrit.cardcrawl.powers.TimeDilationPower;
import com.megacrit.cardcrawl.actions.utility.SFXAction;
import basemod.helpers.TooltipInfo;
Expand Down Expand Up @@ -50,6 +51,8 @@ public void use(AbstractPlayer p, AbstractMonster m) {
@Override
public List<TooltipInfo> getCustomTooltips() {
this.tips.clear();

if (AbstractDungeon.getCurrRoom().phase != AbstractRoom.RoomPhase.COMBAT) { return this.tips; }

for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) {
if (!mo.isDead && !mo.escaped) {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/cards/Recurrance.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.megacrit.cardcrawl.powers.GainStrengthPower;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.ReducePowerAction;
import com.megacrit.cardcrawl.rooms.AbstractRoom;

import chronomuncher.cards.MetricsCard;
import chronomuncher.ChronoMod;
Expand Down Expand Up @@ -78,6 +79,8 @@ public void use(AbstractPlayer p, AbstractMonster m) {
public List<TooltipInfo> getCustomTooltips() {
this.tips.clear();

if (AbstractDungeon.getCurrRoom().phase != AbstractRoom.RoomPhase.COMBAT) { return this.tips; }

for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters) {
if (!mo.isDead && !mo.escaped) {
if (mo.hasPower("DelayedAttack")) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/powers/TimeDilatePower.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public void onInitialApplication()
case "Split":
case "Life Link":
case "Thievery":
case "Surrounded":
case "BackAttack":
break;

default:
Expand All @@ -67,7 +69,7 @@ public void onInitialApplication()
AbstractDungeon.onModifyPower();
break;
}
} else if (p.ID == "Shackled" && p.amount > 0) {
} else if ((p.ID == "Shackled" && p.amount > 0) || p.ID == "BeatOfDeath") {
this.savedPowers.add(p);
p.onRemove();
((Iterator)e).remove();
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Changelog:

0.10.4

Bug: Recurrance and Pendulum no longer crash on tooltip.
Bug: Fixed Pattern Shift support with Corrupt Heart.
Bug: Fixed Pattern Shift support with Spire Shield.
Bug: Fixed Pattern Shift support with Spire Spear.
Bug: Pendulum now works with Beat of Death.

0.10.3

Card: New Card, Locked Anchor. Ethereal. Gains 10 block, Anchor Replica counts up instead of down. On upgrade, shattering Anchor gains 10 block.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ModTheSpire.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author_list": ["Chronometrics"],
"description": "The Disciple is a custom Slay the Spire character themed after the Time Eater. The deck is designed around choosing the correct time for cards to be played to gain max value, and has four central themes: Card Retention, Intent Shifting, Card Transforming, and Temporary Relic Cycling.",
"dependencies": ["basemod"],
"version": "0.10.3",
"version": "0.10.4",
"credits": "Special Thanks to: \nRocketPad - for various character artwork. \nFormalFighting - for design assistance and early playtesting. \nSkylawinters - First alpha player. \nLyman - three card portraits. \nZandorum - Chronometer relic image improvements. \nKullwarrior, KongMD, xcalibre0 - consistent bug reporters.",
"sts_version": "10-18-2018",
"mts_version": "3.4.0",
Expand Down

0 comments on commit 45472cc

Please sign in to comment.