Add Canadian Highlander format

This commit is contained in:
spjspj 2017-01-30 23:57:59 +11:00
parent 532eb3fdea
commit de6fae8c00
2 changed files with 2 additions and 2 deletions

View file

@ -599,7 +599,7 @@ public class TablesPanel extends javax.swing.JPanel {
formatFilterList.add(RowFilter.regexFilter("^Limited", TableTableModel.COLUMN_DECK_TYPE)); formatFilterList.add(RowFilter.regexFilter("^Limited", TableTableModel.COLUMN_DECK_TYPE));
} }
if (btnFormatOther.isSelected()) { if (btnFormatOther.isSelected()) {
formatFilterList.add(RowFilter.regexFilter("^Momir Basic|^Constructed - Pauper|^Constructed - Frontier|^Constructed - Extended|^Constructed - Eternal|^Constructed - Historical|^Constructed - Super|^Constructed - Freeform|^Australian Highlander", TableTableModel.COLUMN_DECK_TYPE)); formatFilterList.add(RowFilter.regexFilter("^Momir Basic|^Constructed - Pauper|^Constructed - Frontier|^Constructed - Extended|^Constructed - Eternal|^Constructed - Historical|^Constructed - Super|^Constructed - Freeform|^Australian Highlander|^Canadian Highlander", TableTableModel.COLUMN_DECK_TYPE));
} }
List<RowFilter<Object, Object>> skillFilterList = new ArrayList<>(); List<RowFilter<Object, Object>> skillFilterList = new ArrayList<>();

View file

@ -86,7 +86,7 @@ public class CanadianHighlander extends Constructed {
} }
} }
int allowedPoints = 10 * (int) Math.ceil(deck.getCards().size()/100.0); int allowedPoints = 10 * (int) Math.floor(deck.getCards().size()/100.0);
int totalPoints = 0; int totalPoints = 0;
for (Map.Entry<String, Integer> entry : counts.entrySet()) { for (Map.Entry<String, Integer> entry : counts.entrySet()) {
String cn = entry.getKey(); String cn = entry.getKey();