Skip to content

Commit fd4b8f2

Browse files
committed
- Change Strength Sap's target to SELF_AND_ENEMY
- Update README.md - Add update_json to ModTheSpire.json
1 parent 44f7955 commit fd4b8f2

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This mod adds The Copycat to Slay the Spire. It's a wacky character mod, like [P
55

66
## The Copycat
77

8-
Inspired by Copycat or Blue Mage archetype in some games, the Copycat's theme is "Copying others". Mainly, she copies enemies' move and uses it herself.
8+
Inspired by Copycat or Blue Mage archetype in some games, the Copycat's theme is "Copying others". Mainly, she copies enemy moves and uses them herself.
99

1010
Copycat has about 40 class cards. It's much less than other characters (~75 cards), but Copycat has another type of card: Monster Cards.
1111

@@ -67,9 +67,9 @@ FriendlyMinions is a nice library that enables minions, but there are problems.
6767
* If a minion dies during enemy turn, all enemies targeting that minion will still attack it, wasting their attack.
6868
* Enemy choosing which minion to attack is not seeded.
6969
* Custom attack icon is sometimes not displayed.
70-
* Minions are invisible in event battle.
70+
* Minions are invisible in event combats.
7171

72-
I decided to fix these problems for this mod. The fix is codenamed "Better Friendly Minions", and I might make this into a standalone mod or as an update to FriendlyMinions if there's enough demand.
72+
I decided to fix these problems for this mod. The fix is codenamed "Better Friendly Minions", and I might convert this into a standalone mod or as an update to FriendlyMinions if there's enough demand.
7373

7474
Here are videos showcasing the fixes.
7575
* Friendly Minions: https://streamable.com/cba8ux
@@ -88,16 +88,16 @@ Hopefully, giving a twist to base game characters' archetypes is a cool way to i
8888
* Strength
8989
* Threshold-based. "If you have 6 or more Strength, do X."
9090
* Poison
91-
* Poison cards naturally synergize with each other, but a [few](venomology) [cards](copycat-form) will make your draft differently.
91+
* Poison cards naturally synergize with each other, but a [few](https://user-images.githubusercontent.com/1008668/128121698-94a31087-3e27-47c0-bff7-7f1f1f37491c.png) [cards](https://user-images.githubusercontent.com/1008668/128121778-dd5b51db-7152-4645-a4ef-35abd2dd492c.png) will make your draft differently.
9292
* Stance
9393
* Unlike Watcher's Stance, where you are supposed to switch a lot and avoid being in Wrath at the end of your turn, Copycat's Protection Stance emphasizes more on finding perfect timing to switch.
9494

9595
#### Others
96-
There are [hybrid cards](hybrid-strike), ["steal" cards](magnet), or cards that care about [enemy's intention.](me-first)
96+
There are [hybrid cards](https://user-images.githubusercontent.com/1008668/128122014-4b1bf1f8-0295-4447-87f9-41e7ee9dc149.png), ["steal" cards](https://user-images.githubusercontent.com/1008668/128122062-e14d2d82-270c-4ae0-9b36-784516b1e777.png), or cards that care about [enemy's intention.](https://user-images.githubusercontent.com/1008668/128122125-3c1f5a22-f12a-4223-bb87-181d2662c0fc.png)
9797

9898
There are also cards that you may think of as a meme. You will either laugh at them or feel smart by using them adequately.
9999

100100
## Notice
101101
* If you enable this mod, it will save monster card images, even if you are not playing with the Copycat.
102-
* It will take about 15MB of disk space for all base game acts, and more if you have modded acts. If you want to check those files, they are in `%LOCALAPPDATA%\ModTheSpire\CopycatMod` on Windows.
103-
* You might encounter lag when the game tries to save these images. It happens once for each unique enemy move.
102+
* It will take about 15MB of disk space for all base game acts, and more if you have modded acts. If you want to check those files, they are in `%LOCALAPPDATA%\ModTheSpire\CopycatMod` on Windows.
103+
* You might encounter lag when the game tries to save these images. It happens once for each unique enemy move.

src/main/java/TheCopycat/cards/StrengthSap.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import TheCopycat.CopycatModMain;
44
import TheCopycat.actions.DoAreaAction;
5+
import TheCopycat.interfaces.TargetAllyCard;
56
import TheCopycat.patches.CharacterEnum;
67
import basemod.abstracts.CustomCard;
78
import com.megacrit.cardcrawl.actions.AbstractGameAction;
@@ -16,7 +17,7 @@
1617
import com.megacrit.cardcrawl.powers.LoseStrengthPower;
1718
import com.megacrit.cardcrawl.powers.StrengthPower;
1819

19-
public class StrengthSap extends CustomCard {
20+
public class StrengthSap extends CustomCard implements TargetAllyCard {
2021
private static final String RAW_ID = "StrengthSap";
2122
public static final String ID = CopycatModMain.makeID(RAW_ID);
2223
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
@@ -27,7 +28,7 @@ public class StrengthSap extends CustomCard {
2728
private static final CardType TYPE = CardType.SKILL;
2829
private static final CardColor COLOR = CharacterEnum.CardColorEnum.COPYCAT_BLUE;
2930
private static final CardRarity RARITY = CardRarity.COMMON;
30-
private static final CardTarget TARGET = CardTarget.ENEMY;
31+
private static final CardTarget TARGET = CardTarget.SELF_AND_ENEMY;
3132

3233
private static final int POWER = 2;
3334
private static final int UPGRADE_BONUS = 1;

src/main/java/TheCopycat/patches/TargetAllyPatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class TargetAllyPatch {
2929
public static class HoverPatch {
3030
@SpireInsertPatch(locator = AfterSetHoveredMonsterLocator.class)
3131
public static void Insert(AbstractPlayer __instance, @ByRef AbstractMonster[] ___hoveredMonster) {
32-
if (__instance.hoveredCard instanceof TargetAllyCard) {
32+
if (__instance.hoveredCard instanceof TargetAllyCard && __instance.hoveredCard.target == AbstractCard.CardTarget.ENEMY) {
3333
hoveredally = BetterFriendlyMinionsUtils.getHoveredAlly();
3434
if (hoveredally == null) {
3535
___hoveredMonster[0] = null;

src/main/resources/ModTheSpire.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"basemod",
1414
"stslib",
1515
"Friendly_Minions_0987678"
16-
]
16+
],
17+
"update_json": "https://api.github.com/repos/Celicath/CopycatMod/releases/latest"
1718
}

0 commit comments

Comments
 (0)