mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Undid previous change of better token sorting for Magic; was causing big problems.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1062 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -182,6 +182,7 @@ init script:
|
|||||||
# The code consists of 4 parts:
|
# The code consists of 4 parts:
|
||||||
# normal/token, color, shifted, split
|
# normal/token, color, shifted, split
|
||||||
sort_index := {
|
sort_index := {
|
||||||
|
(if contains(card.shape, match:"token") then "T" else " ") + # Tokens come last
|
||||||
color_of_card() +
|
color_of_card() +
|
||||||
(if contains(card.shape, match:"shifted") then "S" else " ") + # planeshifted cards come after normal ones
|
(if contains(card.shape, match:"shifted") then "S" else " ") + # planeshifted cards come after normal ones
|
||||||
(if contains(card.shape, match:"split") then "S" else " ") + # split cards come after normal ones
|
(if contains(card.shape, match:"split") then "S" else " ") + # split cards come after normal ones
|
||||||
@@ -249,24 +250,13 @@ init script:
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#rarity_sort := {
|
|
||||||
# if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " " else "S"
|
|
||||||
#}
|
|
||||||
rarity_sort := {
|
rarity_sort := {
|
||||||
if card.shape == "token" then "T"
|
if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " " else "S"
|
||||||
else if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " "
|
|
||||||
else "S"
|
|
||||||
}
|
}
|
||||||
#set_filter := {
|
|
||||||
# if set.sort_special_rarity != "separate numbering" then nil
|
|
||||||
# else if card.rarity == "special" then { card.rarity == "special" }
|
|
||||||
# else { card.rarity != "special" }
|
|
||||||
#}
|
|
||||||
set_filter := {
|
set_filter := {
|
||||||
if card.shape == "token" then { card.shape == "token" }
|
if set.sort_special_rarity != "separate numbering" then nil
|
||||||
else if set.sort_special_rarity != "separate numbering" then { card.shape != "token" and card.shape != "rulestip" }
|
else if card.rarity == "special" then { card.rarity == "special" }
|
||||||
else if card.rarity == "special" then { card.shape != "token" and card.shape != "rulestip" and card.rarity == "special" }
|
else { card.rarity != "special" }
|
||||||
else { card.shape != "token" and card.shape != "rulestip" and card.rarity != "special" }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
card_number := {
|
card_number := {
|
||||||
|
|||||||
Reference in New Issue
Block a user