Commit 2c4b2483 authored by pichoro's avatar pichoro

Improved card sorting for Magic and Vanguard.

M10 version keywords and auto replace for both.
parent 2279fea1
...@@ -27,10 +27,10 @@ auto replace: ...@@ -27,10 +27,10 @@ auto replace:
auto replace: auto replace:
match: CIP match: CIP
replace: comes into play replace: comes onto the battlefield
auto replace: auto replace:
match: AAA match: AAA
replace: as an additional cost to play replace: as an additional cost to cast
auto replace: auto replace:
match: @ match: @
replace: LEGENDNAME replace: LEGENDNAME
......
...@@ -5,7 +5,7 @@ installer group: magic/game files ...@@ -5,7 +5,7 @@ installer group: magic/game files
icon: card-back.png icon: card-back.png
position hint: 01 position hint: 01
version: 2009-05-28 version: 2009-06-09
depends on: magic-blends.mse-include 2007-09-23 depends on: magic-blends.mse-include 2007-09-23
depends on: magic-watermarks.mse-include 2007-09-23 depends on: magic-watermarks.mse-include 2007-09-23
......
This diff is collapsed.
...@@ -191,9 +191,15 @@ sort_index := { ...@@ -191,9 +191,15 @@ sort_index := {
(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
":" ":"
} }
# Process the name for sorting rules (specifically, remove "The", "A", and "And" at the beginning, and make lowercase) # Process the name for sorting rules
sort_name := sort_name :=
# Remove "The", "A", and "And" at the beginning
replace@(match: "^(The|An?) ", replace: "") + replace@(match: "^(The|An?) ", replace: "") +
# Remove commas and apostrophes
replace@(match: "(,|')", replace: "") +
# Remove bold and italic tags
replace@(match: "(<b>|<i>|</b>|</i>)", replace: "") +
# Make lowercase
to_lower to_lower
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" } is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
......
This diff is collapsed.
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