This commit is contained in:
dtookey 2020-08-16 16:45:05 -04:00
parent 77dd7f4409
commit 982e1e2ee2
4 changed files with 9 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<groupId>xyz.geniuscartel</groupId> <groupId>xyz.geniuscartel</groupId>
<artifactId>ConstructTheArena</artifactId> <artifactId>ConstructTheArena</artifactId>
<name>Construct The Arena</name> <name>Construct The Arena</name>
<version>0.0.1</version> <version>1.0</version>
<description>A default base to start your own mod from.</description> <description>A default base to start your own mod from.</description>
<properties> <properties>

View File

@ -27,10 +27,11 @@ public class CArenaPatch {
public static void Insert(CustomModeScreen __instance, CustomTrial trial, ArrayList<String> modIds, String modId) { public static void Insert(CustomModeScreen __instance, CustomTrial trial, ArrayList<String> modIds, String modId) {
if (modId.equals("constructTheArena:constructTheArena")) { if (modId.equals("constructTheArena:constructTheArena")) {
//do nothing for now //do nothing for now
enabled = true; if (ModHelper.isModEnabled("constructTheArena:constructTheArena")) {
ArrayList<String> mods = ModHelper.getEnabledModIDs(); enabled = true;
mods.add("SealedDeck"); } else {
ModHelper.setMods(mods); enabled = false;
}
} }
} }

View File

@ -19,6 +19,8 @@ public class CArenaSkipMasterDeckPatch {
public static void Insert(AbstractPlayer __instance, @ByRef boolean[] addBaseCards) { public static void Insert(AbstractPlayer __instance, @ByRef boolean[] addBaseCards) {
if (CArenaPatch.isEnabled()) { if (CArenaPatch.isEnabled()) {
addBaseCards[0] = false; addBaseCards[0] = false;
}else{
addBaseCards[0] = true;
} }
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"constructTheArena:constructTheArena": { "constructTheArena:constructTheArena": {
"NAME": "Construct the Arena", "NAME": "Construct the Spire",
"DESCRIPTION": "Constructed Deck Mode" "DESCRIPTION": "Constructed Deck Mode"
} }
} }