From 1b57db2f9714a22bb7f6bbb1326a149022aab44e Mon Sep 17 00:00:00 2001 From: pichoro Date: Sat, 9 Aug 2008 01:38:17 +0000 Subject: [PATCH] Provided for rulestip card sorting in Magic game file. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1115 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/script | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 431c1701..aa1b5d0c 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -165,8 +165,6 @@ include file: /magic-blends.mse-include/new-blends # The code consists of 4 parts: # normal/token, color, shifted, split 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:"split") then "S" else " ") + # split cards come after normal ones ":" @@ -235,6 +233,7 @@ color_of_card := { rarity_sort := { 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 "S" } @@ -242,6 +241,8 @@ set_filter := { # TODO: what about rulestips? if card.shape == "token" then { card.shape == "token" } + else if card.shape == "rulestip" then + { card.shape == "rulestip" } else if set.sort_special_rarity != "separate numbering" then { card.shape != "token" and card.shape != "rulestip" } else if card.rarity == "special" then