forked from External/mage
Tournament panel - Showing the number of rounds now only if tournament is swiss style tournament.
This commit is contained in:
parent
473c9e207b
commit
13ac2d0103
2 changed files with 5 additions and 8 deletions
|
|
@ -63,7 +63,11 @@ public class TournamentView implements Serializable {
|
|||
|
||||
tournamentName = tournament.getOptions().getName();
|
||||
|
||||
tournamentType = new StringBuilder(tournament.getOptions().getTournamentType()).append(" ").append(tournament.getNumberRounds()).append(" rounds").toString();
|
||||
if (tournament.getNumberRounds() > 0) {
|
||||
tournamentType = tournament.getOptions().getTournamentType() + " " + tournament.getNumberRounds()+ " rounds";
|
||||
} else {
|
||||
tournamentType = tournament.getOptions().getTournamentType();
|
||||
}
|
||||
startTime = tournament.getStartTime();
|
||||
endTime = tournament.getEndTime();
|
||||
stepStartTime = tournament.getStepStartTime();
|
||||
|
|
|
|||
|
|
@ -28,15 +28,8 @@
|
|||
|
||||
package mage.game.tournament;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.cards.repository.CardCriteria;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.TournamentPlayerState;
|
||||
import mage.players.Player;
|
||||
import mage.util.TournamentUtil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue