Commit 4f13ac9f authored by pichoro's avatar pichoro

Provided for rulestip card sorting in Magic game file.

parent cf9b8b19
...@@ -165,8 +165,6 @@ include file: /magic-blends.mse-include/new-blends ...@@ -165,8 +165,6 @@ include file: /magic-blends.mse-include/new-blends
# 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() +
(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
":" ":"
...@@ -235,6 +233,7 @@ color_of_card := { ...@@ -235,6 +233,7 @@ color_of_card := {
rarity_sort := { rarity_sort := {
if card.shape == "token" then "T" if card.shape == "token" then "T"
else if card.shape == "rulestip" then "U"
else if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " " else if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " "
else "S" else "S"
} }
...@@ -242,6 +241,8 @@ set_filter := { ...@@ -242,6 +241,8 @@ set_filter := {
# TODO: what about rulestips? # TODO: what about rulestips?
if card.shape == "token" then if card.shape == "token" then
{ card.shape == "token" } { card.shape == "token" }
else if card.shape == "rulestip" then
{ card.shape == "rulestip" }
else if set.sort_special_rarity != "separate numbering" then else if set.sort_special_rarity != "separate numbering" then
{ card.shape != "token" and card.shape != "rulestip" } { card.shape != "token" and card.shape != "rulestip" }
else if card.rarity == "special" then else if card.rarity == "special" then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment