mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Tornament construction time - Fixed that the selected value was not used.
This commit is contained in:
parent
0858532257
commit
63783d9fe2
3 changed files with 1 additions and 3 deletions
|
@ -357,7 +357,7 @@ public class NewTournamentDialog extends MageDialog {
|
||||||
if (tournamentType.isLimited()) {
|
if (tournamentType.isLimited()) {
|
||||||
if (tOptions.getLimitedOptions() == null) {
|
if (tOptions.getLimitedOptions() == null) {
|
||||||
tOptions.setLimitedOptions(new LimitedOptions());
|
tOptions.setLimitedOptions(new LimitedOptions());
|
||||||
tOptions.getLimitedOptions().setConstructionTime((Integer)this.spnConstructTime.getValue());
|
tOptions.getLimitedOptions().setConstructionTime((Integer)this.spnConstructTime.getValue() * 60);
|
||||||
}
|
}
|
||||||
for (JComboBox pack: packs) {
|
for (JComboBox pack: packs) {
|
||||||
tOptions.getLimitedOptions().getSetCodes().add(((ExpansionSet) pack.getSelectedItem()).getCode());
|
tOptions.getLimitedOptions().getSetCodes().add(((ExpansionSet) pack.getSelectedItem()).getCode());
|
||||||
|
|
|
@ -50,7 +50,6 @@ public class BoosterDraftEliminationTournament extends TournamentSingleEliminati
|
||||||
|
|
||||||
public BoosterDraftEliminationTournament(TournamentOptions options) {
|
public BoosterDraftEliminationTournament(TournamentOptions options) {
|
||||||
super(options);
|
super(options);
|
||||||
this.getOptions().getLimitedOptions().setConstructionTime(600);
|
|
||||||
currentStep = TournamentStep.START;
|
currentStep = TournamentStep.START;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ public class SealedEliminationTournament extends TournamentSingleElimination {
|
||||||
|
|
||||||
public SealedEliminationTournament(TournamentOptions options) {
|
public SealedEliminationTournament(TournamentOptions options) {
|
||||||
super(options);
|
super(options);
|
||||||
this.getOptions().getLimitedOptions().setConstructionTime(1200);
|
|
||||||
currentStep = TournamentStep.START;
|
currentStep = TournamentStep.START;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue