mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Pioneer random quest mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -448,7 +448,10 @@ public class QuestController {
|
||||
if (world.getName().equals(QuestWorld.STANDARDWORLDNAME)) {
|
||||
this.duelManager = new QuestEventLDADuelManager(FModel.getFormats().getStandard());
|
||||
return;
|
||||
} else if (world.getName().equals(QuestWorld.MODERNWORLDNAME)) {
|
||||
} 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;
|
||||
}else if (world.isCustom()) {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user