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>
<artifactId>ConstructTheArena</artifactId>
<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>
<properties>

View File

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

View File

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

View File

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