Pioneer random quest mode

This commit is contained in:
austinio7116
2019-11-06 08:07:21 +00:00
committed by maustin
parent 2235546f2a
commit 5eb9be6248
3 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
Name:Main world
Name:Random Standard
Name:Random Pioneer
Name:Random Modern
Name:Random Commander
Name:Amonkhet|Dir:Amonkhet|Sets:AKH, HOU

View File

@@ -448,6 +448,9 @@ public class QuestController {
if (world.getName().equals(QuestWorld.STANDARDWORLDNAME)) {
this.duelManager = new QuestEventLDADuelManager(FModel.getFormats().getStandard());
return;
} else if (world.getName().equals(QuestWorld.PIONEERWORLDNAME)) {
this.duelManager = new QuestEventLDADuelManager(FModel.getFormats().getPioneer());
return;
}else if (world.getName().equals(QuestWorld.MODERNWORLDNAME)) {
this.duelManager = new QuestEventLDADuelManager(FModel.getFormats().getModern());
return;

View File

@@ -40,6 +40,7 @@ public class QuestWorld implements Comparable<QuestWorld>{
private final String dir;
private final GameFormatQuest format;
public static final String STANDARDWORLDNAME = "Random Standard";
public static final String PIONEERWORLDNAME = "Random Pioneer";
public static final String MODERNWORLDNAME = "Random Modern";
public static final String RANDOMCOMMANDERWORLDNAME = "Random Commander";
@@ -195,6 +196,12 @@ public class QuestWorld implements Comparable<QuestWorld>{
FModel.getFormats().getStandard().getBannedCardNames(),false);
}
if (useName.equalsIgnoreCase(QuestWorld.PIONEERWORLDNAME)){
useFormat = new GameFormatQuest(QuestWorld.PIONEERWORLDNAME,
FModel.getFormats().getPioneer().getAllowedSetCodes(),
FModel.getFormats().getPioneer().getBannedCardNames(),false);
}
if (useName.equalsIgnoreCase(QuestWorld.MODERNWORLDNAME)){
useFormat = new GameFormatQuest(QuestWorld.MODERNWORLDNAME,
FModel.getFormats().getModern().getAllowedSetCodes(),