mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Group sealed pool by color by default
This commit is contained in:
@@ -162,7 +162,7 @@ public final class CEditorLimited extends ACEditorBase<PaperCard, DeckGroup> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
this.getCatalogManager().setup(SColumnUtil.getCatalogDefaultColumns(), GroupDef.CREATURE_SPELL_LAND, ColumnDef.CMC, 1);
|
this.getCatalogManager().setup(SColumnUtil.getCatalogDefaultColumns(), getScreen() == FScreen.DECK_EDITOR_DRAFT ? GroupDef.CREATURE_SPELL_LAND : GroupDef.COLOR, ColumnDef.CMC, 1);
|
||||||
this.getDeckManager().setup(SColumnUtil.getDeckDefaultColumns(), GroupDef.CREATURE_SPELL_LAND, ColumnDef.CMC, 1);
|
this.getDeckManager().setup(SColumnUtil.getDeckDefaultColumns(), GroupDef.CREATURE_SPELL_LAND, ColumnDef.CMC, 1);
|
||||||
|
|
||||||
SItemManagerUtil.resetUI(this);
|
SItemManagerUtil.resetUI(this);
|
||||||
|
|||||||
@@ -152,30 +152,30 @@ public enum GroupDef {
|
|||||||
|
|
||||||
private static String[] getColorGroups() {
|
private static String[] getColorGroups() {
|
||||||
//TODO: Support breaking up Multicolor into separate groups for each color combination
|
//TODO: Support breaking up Multicolor into separate groups for each color combination
|
||||||
return new String[] { "Colorless", "White", "Blue", "Black", "Red", "Green", "Multicolor" };
|
return new String[] { "White", "Blue", "Black", "Red", "Green", "Multicolor", "Colorless" };
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Integer getColorGroup(ColorSet color) {
|
private static Integer getColorGroup(ColorSet color) {
|
||||||
if (color.isColorless()) {
|
if (color.isColorless()) {
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (color.isMulticolor()) {
|
|
||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
|
if (color.isMulticolor()) {
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
if (color.hasWhite()) {
|
if (color.hasWhite()) {
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
if (color.hasBlue()) {
|
if (color.hasBlue()) {
|
||||||
return 2;
|
return 1;
|
||||||
}
|
}
|
||||||
if (color.hasBlack()) {
|
if (color.hasBlack()) {
|
||||||
return 3;
|
return 2;
|
||||||
}
|
}
|
||||||
if (color.hasRed()) {
|
if (color.hasRed()) {
|
||||||
return 4;
|
return 3;
|
||||||
}
|
}
|
||||||
if (color.hasGreen()) {
|
if (color.hasGreen()) {
|
||||||
return 5;
|
return 4;
|
||||||
}
|
}
|
||||||
return -1; //shouldn't happen
|
return -1; //shouldn't happen
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user