Skip to content

Commit 88026fd

Browse files
Initial commit
0 parents  commit 88026fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+664
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Project exclude paths
2+
/target/

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0">
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<groupId>pinacolada</groupId>
5+
<artifactId>thenothing</artifactId>
6+
<version>v1.0.0</version>
7+
<packaging>jar</packaging>
8+
9+
<name>The</name>
10+
<description>Adds a character.</description>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<Steam.path>D:/Program Files/Steam/steamapps/</Steam.path>
15+
</properties>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.megacrit.cardcrawl</groupId>
20+
<artifactId>slaythespire</artifactId>
21+
<version>12-22-2020</version>
22+
<scope>system</scope>
23+
<systemPath>${Steam.path}/common/SlayTheSpire/desktop-1.0.jar</systemPath>
24+
</dependency>
25+
<dependency>
26+
<groupId>extendedui</groupId>
27+
<artifactId>extendedui</artifactId>
28+
<version>v1.0.0</version>
29+
<scope>system</scope>
30+
<systemPath>${Steam.path}/common/SlayTheSpire/mods/ExtendedUI.jar</systemPath>
31+
</dependency>
32+
<dependency>
33+
<groupId>basemod</groupId>
34+
<artifactId>basemod</artifactId>
35+
<version>5.33.0</version>
36+
<scope>system</scope>
37+
<systemPath>${Steam.path}/workshop/content/646570/1605060445/ModTheSpire.jar</systemPath>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.evacipated.cardcrawl</groupId>
41+
<artifactId>ModTheSpire</artifactId>
42+
<version>3.22.0</version>
43+
<scope>system</scope>
44+
<systemPath>${Steam.path}/workshop/content/646570/1605833019/BaseMod.jar</systemPath>
45+
</dependency>
46+
<dependency>
47+
<groupId>com.evacipated.cardcrawl</groupId>
48+
<artifactId>stslib</artifactId>
49+
<version>1.23.0</version>
50+
<scope>system</scope>
51+
<systemPath>${Steam.path}/workshop/content/646570/1609158507/StSLib.jar</systemPath>
52+
</dependency>
53+
<dependency>
54+
<groupId>pinacolada</groupId>
55+
<artifactId>pinacolada</artifactId>
56+
<version>v1.0.0</version>
57+
<scope>system</scope>
58+
<systemPath>${Steam.path}/common/SlayTheSpire/mods/Fabricate.jar</systemPath>
59+
</dependency>
60+
</dependencies>
61+
62+
<build>
63+
<finalName>The</finalName>
64+
<plugins>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-compiler-plugin</artifactId>
68+
<version>3.7.0</version>
69+
<configuration>
70+
<source>1.8</source>
71+
<target>1.8</target>
72+
</configuration>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-antrun-plugin</artifactId>
77+
<version>1.8</version>
78+
<executions>
79+
<execution>
80+
<phase>package</phase>
81+
<configuration>
82+
<target>
83+
<copy file="target/The.jar" tofile="D:\Program Files\Steam\steamapps\common\SlayTheSpire\mods\The.jar"/>
84+
</target>
85+
</configuration>
86+
<goals>
87+
<goal>run</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
</plugins>
93+
<resources>
94+
<resource>
95+
<directory>src/main/resources</directory>
96+
<excludes>
97+
<exclude>**/*.psd</exclude>
98+
<exclude>**/temp/*</exclude>
99+
<exclude>**/*.xcf</exclude>
100+
</excludes>
101+
</resource>
102+
</resources>
103+
</build>
104+
</project>

src/main/java/thenothing/The.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package thenothing;
2+
3+
import com.evacipated.cardcrawl.modthespire.lib.SpireInitializer;
4+
import pinacolada.resources.PGR;
5+
import thenothing.resources.the.TheResources;
6+
7+
@SpireInitializer
8+
public class The
9+
{
10+
public static void initialize()
11+
{
12+
PGR.registerResource(TheResources.the);
13+
}
14+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package thenothing.cards.the;
2+
3+
import pinacolada.actions.PCLActions;
4+
import pinacolada.annotations.VisibleCard;
5+
import pinacolada.cards.base.PCLCard;
6+
import pinacolada.cards.base.PCLCardData;
7+
import pinacolada.cards.base.fields.PCLCardTarget;
8+
import pinacolada.dungeon.PCLUseInfo;
9+
import pinacolada.skills.PMove;
10+
import pinacolada.skills.skills.PSpecialSkill;
11+
import thenothing.resources.the.TheResources;
12+
13+
@VisibleCard
14+
public class ACard extends PCLCard {
15+
public static final PCLCardData DATA = register(ACard.class, TheResources.the)
16+
.setSkill(1, CardRarity.SPECIAL, PCLCardTarget.Self)
17+
.setBlock(1, 1)
18+
.setCore();
19+
20+
public ACard() {
21+
super(DATA);
22+
}
23+
24+
public void action(PSpecialSkill move, PCLUseInfo info, PCLActions order) {
25+
}
26+
27+
public void setup(Object input) {
28+
addBlockMove();
29+
addUseMove(PMove.draw(1));
30+
addSpecialMove(0, this::action, 1);
31+
}
32+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package thenothing.characters;
2+
3+
import com.badlogic.gdx.graphics.Color;
4+
import com.megacrit.cardcrawl.cards.AbstractCard;
5+
import com.megacrit.cardcrawl.cards.red.Strike_Red;
6+
import com.megacrit.cardcrawl.characters.AbstractPlayer;
7+
import com.megacrit.cardcrawl.helpers.CardHelper;
8+
import com.megacrit.cardcrawl.localization.CharacterStrings;
9+
import extendedui.utilities.EUIColors;
10+
import pinacolada.cards.base.PCLCustomCardSlot;
11+
import pinacolada.characters.PCLCharacter;
12+
import pinacolada.characters.PCLCharacterSpineAnimation;
13+
import pinacolada.ui.PCLEnergyOrb;
14+
import pinacolada.utilities.GameUtilities;
15+
import thenothing.The;
16+
import thenothing.resources.the.TheEnum;
17+
import thenothing.resources.the.ThePlayerData;
18+
import thenothing.resources.the.TheResources;
19+
20+
public class TheCharacter extends PCLCharacter {
21+
public static final Color MAIN_COLOR = Color.GRAY.cpy();
22+
23+
public TheCharacter() {
24+
super(TheResources.the.data, TheResources.the.images.createSpriterAnimation());
25+
}
26+
27+
// Due to the constructor for CustomPlayer, you will need to define your card color here manually, as this gets called before the playerData can be set to the character
28+
@Override
29+
public AbstractCard.CardColor getCardColor() {
30+
return TheResources.the.cardColor;
31+
}
32+
33+
@Override
34+
public Color getCardRenderColor() {
35+
return MAIN_COLOR;
36+
}
37+
38+
@Override
39+
public AbstractCard getStartCardForEvent() {
40+
if (ThePlayerData.core.strikes.size() > 0) {
41+
return GameUtilities.getRandomElement(ThePlayerData.core.strikes).create();
42+
}
43+
for (PCLCustomCardSlot slot : PCLCustomCardSlot.getCards(getCardColor())) {
44+
if (slot.getBuilder(0).cardRarity == AbstractCard.CardRarity.BASIC) {
45+
return slot.make();
46+
}
47+
}
48+
return new Strike_Red();
49+
}
50+
51+
@Override
52+
public Color getCardTrailColor() {
53+
return MAIN_COLOR;
54+
}
55+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package thenothing.relics.the;
2+
3+
import pinacolada.actions.PCLActions;
4+
import pinacolada.annotations.VisibleRelic;
5+
import pinacolada.dungeon.PCLUseInfo;
6+
import pinacolada.relics.PCLPointerRelic;
7+
import pinacolada.relics.PCLRelicData;
8+
import pinacolada.skills.PCond;
9+
import pinacolada.skills.PMove;
10+
import pinacolada.skills.skills.PSpecialSkill;
11+
import pinacolada.skills.skills.PTrigger;
12+
import pinacolada.skills.skills.special.primary.PRoot;
13+
import thenothing.resources.the.TheResources;
14+
15+
@VisibleRelic
16+
public class ARelic extends PCLPointerRelic {
17+
public static final PCLRelicData DATA = register(ARelic.class, TheResources.the)
18+
.setProps(RelicTier.STARTER, LandingSound.MAGICAL);
19+
20+
public ARelic() {
21+
super(DATA);
22+
}
23+
24+
public void action(PSpecialSkill move, PCLUseInfo info, PCLActions order) {
25+
}
26+
27+
public void setup() {
28+
addUseMove(new PRoot(), getSpecialMove(0, this::action));
29+
}
30+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package thenothing.resources.the;
2+
3+
import pinacolada.resources.PCLCharacterConfig;
4+
import pinacolada.resources.PCLMainConfig;
5+
6+
public class TheConfig extends PCLCharacterConfig {
7+
private static final String MOD_ID = "The";
8+
9+
public TheConfig() {
10+
super(MOD_ID);
11+
}
12+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package thenothing.resources.the;
2+
3+
import com.evacipated.cardcrawl.modthespire.lib.SpireEnum;
4+
import com.megacrit.cardcrawl.cards.AbstractCard;
5+
import com.megacrit.cardcrawl.characters.AbstractPlayer;
6+
import com.megacrit.cardcrawl.helpers.CardLibrary;
7+
8+
public class TheEnum
9+
{
10+
public static class Library {
11+
@SpireEnum
12+
public static CardLibrary.LibraryType THE;
13+
14+
public Library() {
15+
}
16+
}
17+
18+
public static class Cards {
19+
@SpireEnum
20+
public static AbstractCard.CardColor THE;
21+
22+
public Cards() {
23+
}
24+
}
25+
26+
public static class Characters {
27+
@SpireEnum
28+
public static AbstractPlayer.PlayerClass THE;
29+
30+
public Characters() {
31+
}
32+
}
33+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package thenothing.resources.the;
2+
3+
import pinacolada.resources.AbstractImages;
4+
5+
public class TheImages extends AbstractImages
6+
{
7+
public TheImages(String id)
8+
{
9+
super(id);
10+
}
11+
}

0 commit comments

Comments
 (0)