mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Add fog of war effect
This commit is contained in:
@@ -272,6 +272,8 @@ public enum ConquestPlane {
|
||||
}
|
||||
|
||||
public static class Region {
|
||||
public static final int OPPONENTS_PER_REGION = 15;
|
||||
|
||||
private final String name;
|
||||
private final String artCardName;
|
||||
private final ColorSet colorSet;
|
||||
@@ -325,7 +327,7 @@ public enum ConquestPlane {
|
||||
|
||||
//each region should have 15 opponents include one boss
|
||||
private void generateOpponents() {
|
||||
int opponentsBeforeBoss = 15; //TODO: Reduce by 1 when boss added below
|
||||
int opponentsBeforeBoss = OPPONENTS_PER_REGION; //TODO: Reduce by 1 when boss added below
|
||||
HashSet<PaperCard> cards = new HashSet<PaperCard>(commanders);
|
||||
if (cards.size() < opponentsBeforeBoss) {
|
||||
//if not enough commanders, add normal creatures as non-commander opponents
|
||||
|
||||
@@ -18,6 +18,7 @@ public class ConquestPlaneData {
|
||||
private int wins, losses;
|
||||
private int winStreakBest = 0;
|
||||
private int winStreakCurrent = 0;
|
||||
private int progress = 0;
|
||||
|
||||
public ConquestPlaneData(ConquestPlane plane0) {
|
||||
plane = plane0;
|
||||
@@ -77,6 +78,10 @@ public class ConquestPlaneData {
|
||||
return winStreakCurrent;
|
||||
}
|
||||
|
||||
public int getProgress() {
|
||||
return progress;
|
||||
}
|
||||
|
||||
public int getUnlockedCount() {
|
||||
int count = 0;
|
||||
HashSet<PaperCard> collection = FModel.getConquest().getModel().getCollection();
|
||||
|
||||
Reference in New Issue
Block a user