mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix display of map screen
Fix so deck gets saved
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package forge.screens.planarconquest;
|
||||
|
||||
import forge.FThreads;
|
||||
import forge.model.FModel;
|
||||
import forge.quest.QuestUtil;
|
||||
import forge.screens.LaunchScreen;
|
||||
import forge.screens.LoadingOverlay;
|
||||
@@ -47,7 +48,7 @@ public class ConquestMapScreen extends LaunchScreen {
|
||||
}
|
||||
|
||||
public void update() {
|
||||
|
||||
setHeaderCaption(FModel.getConquest().getName() + "\n" + FModel.getConquest().getCurrentPlane());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -40,6 +40,10 @@ public class ConquestController {
|
||||
return model == null ? null : model.getName();
|
||||
}
|
||||
|
||||
public String getCurrentPlane() {
|
||||
return model == null ? null : model.getCurrentPlane().getName();
|
||||
}
|
||||
|
||||
public CardPool getCardPool() {
|
||||
return cardPool;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,13 @@ public final class ConquestData {
|
||||
difficulty = difficulty0;
|
||||
startingPlane = startingPlane0;
|
||||
currentPlane = startingPlane0;
|
||||
commanders.add(new ConquestCommander(startingCommander0, startingPlane.getCardPool()));
|
||||
addCommander(startingCommander0);
|
||||
}
|
||||
|
||||
private void addCommander(PaperCard card) {
|
||||
ConquestCommander commander = new ConquestCommander(card, currentPlane.getCardPool());
|
||||
commanders.add(commander);
|
||||
decks.put(commander.getDeck().getName(), commander.getDeck());
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
||||
Reference in New Issue
Block a user