mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Move round calculation to after participant amount is set.
This commit is contained in:
@@ -129,16 +129,6 @@ public class AdventureEventData implements Serializable {
|
|||||||
style = AdventureEventController.EventStyle.Bracket;
|
style = AdventureEventController.EventStyle.Bracket;
|
||||||
}
|
}
|
||||||
this.style = style;
|
this.style = style;
|
||||||
|
|
||||||
switch (style) {
|
|
||||||
case Swiss:
|
|
||||||
case Bracket:
|
|
||||||
this.rounds = (participants.length / 2) - 1;
|
|
||||||
break;
|
|
||||||
case RoundRobin:
|
|
||||||
this.rounds = participants.length - 1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEventSeed(long seed) {
|
public void setEventSeed(long seed) {
|
||||||
@@ -494,6 +484,16 @@ public class AdventureEventData implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (this.style) {
|
||||||
|
case Swiss:
|
||||||
|
case Bracket:
|
||||||
|
this.rounds = (participants.length / 2) - 1;
|
||||||
|
break;
|
||||||
|
case RoundRobin:
|
||||||
|
this.rounds = participants.length - 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getRecommendedPodSize(CardBlock cardBlock) {
|
public static int getRecommendedPodSize(CardBlock cardBlock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user