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:
@@ -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