Move round calculation to after participant amount is set.

This commit is contained in:
Jetz
2025-10-16 09:09:08 -04:00
parent 7e47a6ee2c
commit 4a616c8ac6

View File

@@ -129,16 +129,6 @@ public class AdventureEventData implements Serializable {
style = AdventureEventController.EventStyle.Bracket;
}
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) {
@@ -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) {