mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Added sorting of words "A", "An", and "The".
Fixed transparency on update arrow. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@820 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
mse version: 0.3.6
|
||||
|
||||
mse version: 0.3.6
|
||||
short name: Magic
|
||||
full name: Magic the Gathering
|
||||
installer group: magic/game files
|
||||
@@ -187,6 +188,11 @@ init script:
|
||||
(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)
|
||||
sort_name :=
|
||||
replace_rule (match: "^(The|An?) ", replace: "") +
|
||||
to_lower
|
||||
|
||||
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
|
||||
is_null_cost := { input == "" or input == "0" }
|
||||
basic_land_sort := {
|
||||
@@ -241,7 +247,7 @@ init script:
|
||||
position (
|
||||
of: card
|
||||
in: set
|
||||
order_by: { rarity_sort() + sort_index() + card.name }
|
||||
order_by: { rarity_sort() + sort_index() + sort_name(card.name) }
|
||||
filter: set_filter()
|
||||
) + 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user