Added a patch to enable the final act.
cleaned up some formatting in ConstructDraftPatch.java
This commit is contained in:
parent
3f03dddab3
commit
456b100799
@ -0,0 +1,25 @@
|
|||||||
|
package constructTheArena.patches;
|
||||||
|
|
||||||
|
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
|
||||||
|
import com.evacipated.cardcrawl.modthespire.lib.SpirePrefixPatch;
|
||||||
|
import com.megacrit.cardcrawl.core.Settings;
|
||||||
|
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
|
//generateMap in AbstractDungeon.java
|
||||||
|
@SpirePatch(
|
||||||
|
clz = AbstractDungeon.class,
|
||||||
|
method = "generateMap"
|
||||||
|
)
|
||||||
|
public class CArenaEnableLastActPatch {
|
||||||
|
private final static Logger logger = LogManager.getLogger(CArenaEnableLastActPatch.class.getName());
|
||||||
|
|
||||||
|
@SpirePrefixPatch
|
||||||
|
public static void Prefix() {
|
||||||
|
if (CArenaPatch.isEnabled()) {
|
||||||
|
Settings.isFinalActAvailable = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -34,7 +34,6 @@ public class ConstructDraftPatch {
|
|||||||
@SpirePrefixPatch
|
@SpirePrefixPatch
|
||||||
public static void Prefix() {
|
public static void Prefix() {
|
||||||
if (CArenaPatch.isEnabled()) {
|
if (CArenaPatch.isEnabled()) {
|
||||||
|
|
||||||
ArrayList<String> mods = ModHelper.getEnabledModIDs();
|
ArrayList<String> mods = ModHelper.getEnabledModIDs();
|
||||||
mods.remove("SealedDeck");
|
mods.remove("SealedDeck");
|
||||||
ModHelper.setMods(mods);
|
ModHelper.setMods(mods);
|
||||||
@ -73,8 +72,10 @@ public class ConstructDraftPatch {
|
|||||||
UnlockTracker.markCardAsSeen(c.cardID);
|
UnlockTracker.markCardAsSeen(c.cardID);
|
||||||
}
|
}
|
||||||
|
|
||||||
AbstractDungeon.gridSelectScreen.open(constructGroup, 40, true, uiStrings.TEXT[0]+CardLimit+uiStrings.TEXT[1]);
|
AbstractDungeon.gridSelectScreen.open(constructGroup, 40, true, uiStrings.TEXT[0] + CardLimit + uiStrings.TEXT[1]);
|
||||||
|
|
||||||
AbstractDungeon.getCurrRoom().spawnRelicAndObtain(Settings.WIDTH / 2.0F, Settings.HEIGHT / 2.0F, new ConstructorsBurden());
|
AbstractDungeon.getCurrRoom().spawnRelicAndObtain(Settings.WIDTH / 2.0F, Settings.HEIGHT / 2.0F, new ConstructorsBurden());
|
||||||
|
|
||||||
CArenaPatch.setEnabled(false); //turne off deck skipping and whatnot
|
CArenaPatch.setEnabled(false); //turne off deck skipping and whatnot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user