From e4d2df4827980064f496158f6d5046753b0fe33d Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 7 Aug 2008 20:52:15 +0000 Subject: [PATCH] Separate card numbers for tokens git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1089 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/script | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 0faaa3fe..431c1701 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -234,12 +234,20 @@ color_of_card := { } rarity_sort := { - if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " " else "S" + if card.shape == "token" then "T" + 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" } + # TODO: what about rulestips? + if card.shape == "token" then + { card.shape == "token" } + else if set.sort_special_rarity != "separate numbering" then + { card.shape != "token" and card.shape != "rulestip" } + else if card.rarity == "special" then + { card.shape != "token" and card.shape != "rulestip" and card.rarity == "special" } + else + { card.shape != "token" and card.shape != "rulestip" and card.rarity != "special" } } card_number := {