forked from daviscook477/BaseMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tag the basegame basic cards with BASIC_STRIKE, BASIC_DEFEND, and FORM …
…Closes daviscook477#165
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
mod/src/main/java/basemod/patches/com/megacrit/cardcrawl/cards/TagBasicCards.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package basemod.patches.com.megacrit.cardcrawl.cards; | ||
|
||
import basemod.helpers.BaseModCardTags; | ||
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch; | ||
import com.megacrit.cardcrawl.cards.AbstractCard; | ||
import com.megacrit.cardcrawl.cards.blue.Defend_Blue; | ||
import com.megacrit.cardcrawl.cards.blue.EchoForm; | ||
import com.megacrit.cardcrawl.cards.blue.Strike_Blue; | ||
import com.megacrit.cardcrawl.cards.green.Defend_Green; | ||
import com.megacrit.cardcrawl.cards.green.Strike_Green; | ||
import com.megacrit.cardcrawl.cards.green.WraithForm; | ||
import com.megacrit.cardcrawl.cards.red.Defend_Red; | ||
import com.megacrit.cardcrawl.cards.red.DemonForm; | ||
import com.megacrit.cardcrawl.cards.red.Strike_Red; | ||
|
||
public class TagBasicCards | ||
{ | ||
@SpirePatch( | ||
clz=Strike_Red.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=Strike_Green.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=Strike_Blue.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
public static class Strikes | ||
{ | ||
public static void Postfix(AbstractCard __instance) | ||
{ | ||
__instance.tags.add(BaseModCardTags.BASIC_STRIKE); | ||
} | ||
} | ||
|
||
@SpirePatch( | ||
clz=Defend_Red.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=Defend_Green.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=Defend_Blue.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
public static class Defends | ||
{ | ||
public static void Postfix(AbstractCard __instance) | ||
{ | ||
__instance.tags.add(BaseModCardTags.BASIC_DEFEND); | ||
} | ||
} | ||
|
||
@SpirePatch( | ||
clz=DemonForm.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=WraithForm.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
@SpirePatch( | ||
clz=EchoForm.class, | ||
method=SpirePatch.CONSTRUCTOR | ||
) | ||
public static class Forms | ||
{ | ||
public static void Postfix(AbstractCard __instance) | ||
{ | ||
__instance.tags.add(BaseModCardTags.FORM); | ||
} | ||
} | ||
} |