Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions src/main/java/ti4/website/model/WebPlayerArea.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public static class BreakthroughInfo {
private final String breakthroughId;
private final boolean unlocked;
private final boolean exhausted;
// TODO: MemePhilosopher uncomment this
// private final boolean active;
private final boolean active;
private final int tradeGoodsStored;
}

Expand Down Expand Up @@ -179,9 +178,8 @@ public static class PlotCardInfo {
// Debt tokens: debt that this player is OWED by other players (faction/color -> count)
private Map<String, Integer> debtTokens;

// Breakthrough (Thunder's Edge)
// TODO: MemePhilosopher make this a list
private BreakthroughInfo breakthrough;
// Breakthroughs (Thunder's Edge)
private List<BreakthroughInfo> breakthroughs;

// Plot cards (Firmament/Obsidian)
private List<PlotCardInfo> plotCards;
Expand Down Expand Up @@ -378,20 +376,16 @@ public static WebPlayerArea fromPlayer(Player player, Game game) {
boolean act = player.isBreakthroughActive(btID);
int tgs = player.getBreakthroughTGs(btID);

// TODO: MemePhilosopher replace this ...
breakthroughs.add(new BreakthroughInfo(btID, unl, exh, tgs));
// ... with this
// breakthroughs.add(new BreakthroughInfo(btID, unl, exh, act, tgs));
breakthroughs.add(new BreakthroughInfo(btID, unl, exh, act, tgs));
}

// TODO: MemePhilosopher make this a list
if (!breakthroughs.isEmpty()) {
webPlayerArea.setBreakthrough(breakthroughs.getFirst());
webPlayerArea.setBreakthroughs(breakthroughs);
} else {
webPlayerArea.setBreakthrough(null);
webPlayerArea.setBreakthroughs(null);
}
} else {
webPlayerArea.setBreakthrough(null);
webPlayerArea.setBreakthroughs(null);
}

// Plot cards (Firmament/Obsidian)
Expand Down