mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merge branch 'patch-5' into 'master'
Sort Conspiracy before Eldrazi See merge request core-developers/forge!85
This commit is contained in:
@@ -541,7 +541,14 @@ public enum ColumnDef {
|
|||||||
//split cards last
|
//split cards last
|
||||||
private static String toSplitLast(final InventoryItem i) {
|
private static String toSplitLast(final InventoryItem i) {
|
||||||
return ((IPaperCard) i).getRules().getSplitType() != CardSplitType.Split ?
|
return ((IPaperCard) i).getRules().getSplitType() != CardSplitType.Split ?
|
||||||
"0" + toColorlessFirst(i): "1" + toSplitCardSort(i);
|
"0" + toConspiracyFirst(i) : "1" + toSplitCardSort(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
//conspiracy first, then everything else
|
||||||
|
private static String toConspiracyFirst(final InventoryItem i) {
|
||||||
|
return ((IPaperCard) i).getRules().getType().isConspiracy()
|
||||||
|
? "0" //is a Conspiracy
|
||||||
|
: "1" + toColorlessFirst(i); //isn't a Conspiracy
|
||||||
}
|
}
|
||||||
|
|
||||||
//colorless first, then colored.
|
//colorless first, then colored.
|
||||||
|
|||||||
Reference in New Issue
Block a user