Personal sync, part 2
add m15-black, future-planeswalker, m15-imageupload, token-invention add dungeon updates add land TTK frames lots of little cleanups
This commit is contained in:
@@ -39,23 +39,23 @@
|
||||
|
||||
# Names of colors
|
||||
color_name := {
|
||||
if input = "W" then "white"
|
||||
else if input = "U" then "blue"
|
||||
else if input = "B" then "black"
|
||||
else if input = "R" then "red"
|
||||
else if input = "G" then "green"
|
||||
else if input = "P" then "purple"
|
||||
else if input = "K" then "pink"
|
||||
if input == "W" then "white"
|
||||
else if input == "U" then "blue"
|
||||
else if input == "B" then "black"
|
||||
else if input == "R" then "red"
|
||||
else if input == "G" then "green"
|
||||
else if input == "P" then "purple"
|
||||
else if input == "K" then "pink"
|
||||
else ""
|
||||
}
|
||||
color_names_6 := { color_name(colors.0) + ", " + color_name(colors.1) + ", " + color_name(colors.2) + ", " + color_name(colors.3) + ", " + color_name(colors.4) + ", " + color_name(colors.5) }
|
||||
color_names_7 := { color_name(colors.0) + ", " + color_name(colors.1) + ", " + color_name(colors.2) + ", " + color_name(colors.3) + ", " + color_name(colors.4) + ", " + color_name(colors.5) + ", " + color_name(colors.6) }
|
||||
# color based on mana cost, input = a mana cost
|
||||
# color based on mana cost, input == a mana cost
|
||||
color_filter := sort_text@(order: "<WUBRGPK>")
|
||||
color_filterS := sort_text@(order: "<SC>")
|
||||
mana_to_color := {
|
||||
count := number_of_items(in: colors)
|
||||
if hybrid == "" and snow = "" and contains(type, match:"Artifact") then
|
||||
if hybrid == "" and snow == "" and contains(type, match:"Artifact") then
|
||||
# not a hybrid, not snow costed, but artifact
|
||||
if count == 0 then "colorless"
|
||||
else if count == 1 then color_names_1() + ", artifact"
|
||||
@@ -156,7 +156,7 @@
|
||||
if text != "" then (
|
||||
if contains(text, match: "all colors") then (
|
||||
colors := "WUBRGP"
|
||||
if land = "land" then land_multicolor()
|
||||
if land == "land" then land_multicolor()
|
||||
else mana_to_color(hybrid: "")
|
||||
) else (
|
||||
colors := ""
|
||||
@@ -167,11 +167,11 @@
|
||||
if contains(text, match: "green") then colors := colors + "G"
|
||||
if contains(text, match: "purple") then colors := colors + "P"
|
||||
if contains(text, match: "pink") then colors := colors + "K"
|
||||
if land = "land" then land_multicolor()
|
||||
if land == "land" then land_multicolor()
|
||||
else mana_to_color(hybrid: "")
|
||||
)
|
||||
)
|
||||
)
|
||||
)else ""
|
||||
)else ""
|
||||
}
|
||||
|
||||
card_color := {
|
||||
@@ -213,53 +213,53 @@
|
||||
hybrid_color_pair_sort := {
|
||||
colors := sort_text(casting_cost, order: "<WUBRGPK>")
|
||||
if not set.sort_hybrid_in_pairs then "HK"
|
||||
else if colors = "WU" then "HA"
|
||||
else if colors = "UB" then "HB"
|
||||
else if colors = "BR" then "HC"
|
||||
else if colors = "RG" then "HD"
|
||||
else if colors = "WG" then "HE"
|
||||
else if colors = "WB" then "HF"
|
||||
else if colors = "UR" then "HG"
|
||||
else if colors = "BG" then "HH"
|
||||
else if colors = "WR" then "HI"
|
||||
else if colors = "UG" then "HJ"
|
||||
else if colors = "WP" then "HJAA"
|
||||
else if colors = "UP" then "HJAB"
|
||||
else if colors = "BP" then "HJAC"
|
||||
else if colors = "RP" then "HJAD"
|
||||
else if colors = "GP" then "HJAE"
|
||||
else if colors = "WK" then "HJBA"
|
||||
else if colors = "UK" then "HJBB"
|
||||
else if colors = "BK" then "HJBC"
|
||||
else if colors = "RK" then "HJBD"
|
||||
else if colors = "GK" then "HJBE"
|
||||
else if colors = "PK" then "HJBF"
|
||||
else if colors == "WU" then "HA"
|
||||
else if colors == "UB" then "HB"
|
||||
else if colors == "BR" then "HC"
|
||||
else if colors == "RG" then "HD"
|
||||
else if colors == "WG" then "HE"
|
||||
else if colors == "WB" then "HF"
|
||||
else if colors == "UR" then "HG"
|
||||
else if colors == "BG" then "HH"
|
||||
else if colors == "WR" then "HI"
|
||||
else if colors == "UG" then "HJ"
|
||||
else if colors == "WP" then "HJAA"
|
||||
else if colors == "UP" then "HJAB"
|
||||
else if colors == "BP" then "HJAC"
|
||||
else if colors == "RP" then "HJAD"
|
||||
else if colors == "GP" then "HJAE"
|
||||
else if colors == "WK" then "HJBA"
|
||||
else if colors == "UK" then "HJBB"
|
||||
else if colors == "BK" then "HJBC"
|
||||
else if colors == "RK" then "HJBD"
|
||||
else if colors == "GK" then "HJBE"
|
||||
else if colors == "PK" then "HJBF"
|
||||
else "HK"
|
||||
}
|
||||
multi_color_pair_sort := {
|
||||
colors := sort_text(casting_cost, order: "<WUBRGP>")
|
||||
if not set.sort_multicolor_in_pairs then "GK"
|
||||
else if colors = "WU" then "GA"
|
||||
else if colors = "UB" then "GB"
|
||||
else if colors = "BR" then "GC"
|
||||
else if colors = "RG" then "GD"
|
||||
else if colors = "WG" then "GE"
|
||||
else if colors = "WB" then "GF"
|
||||
else if colors = "UR" then "GG"
|
||||
else if colors = "BG" then "GH"
|
||||
else if colors = "WR" then "GI"
|
||||
else if colors = "UG" then "GJ"
|
||||
else if colors = "WP" then "GJAA"
|
||||
else if colors = "UP" then "GJAB"
|
||||
else if colors = "BP" then "GJAC"
|
||||
else if colors = "RP" then "GJAD"
|
||||
else if colors = "GP" then "GJAE"
|
||||
else if colors = "WK" then "GJBA"
|
||||
else if colors = "UK" then "GJBB"
|
||||
else if colors = "BK" then "GJBC"
|
||||
else if colors = "RK" then "GJBD"
|
||||
else if colors = "GK" then "GJBE"
|
||||
else if colors = "PK" then "GJBF"
|
||||
else if colors == "WU" then "GA"
|
||||
else if colors == "UB" then "GB"
|
||||
else if colors == "BR" then "GC"
|
||||
else if colors == "RG" then "GD"
|
||||
else if colors == "WG" then "GE"
|
||||
else if colors == "WB" then "GF"
|
||||
else if colors == "UR" then "GG"
|
||||
else if colors == "BG" then "GH"
|
||||
else if colors == "WR" then "GI"
|
||||
else if colors == "UG" then "GJ"
|
||||
else if colors == "WP" then "GJAA"
|
||||
else if colors == "UP" then "GJAB"
|
||||
else if colors == "BP" then "GJAC"
|
||||
else if colors == "RP" then "GJAD"
|
||||
else if colors == "GP" then "GJAE"
|
||||
else if colors == "WK" then "GJBA"
|
||||
else if colors == "UK" then "GJBB"
|
||||
else if colors == "BK" then "GJBC"
|
||||
else if colors == "RK" then "GJBD"
|
||||
else if colors == "GK" then "GJBE"
|
||||
else if colors == "PK" then "GJBF"
|
||||
else if contains(card.casting_cost, match:"/") then "GL"
|
||||
else "GK"
|
||||
}
|
||||
@@ -436,7 +436,7 @@
|
||||
{ if set.mark_errors then
|
||||
check_spelling(
|
||||
language: language().spellcheck_code,
|
||||
extra_dictionary: "/magic.mse-game/magic-words",
|
||||
extra_dictionary: "/magic.mse-game/dictionary/magic-words",
|
||||
extra_match: additional_text_words
|
||||
)
|
||||
else input
|
||||
@@ -464,7 +464,9 @@
|
||||
else if card.rarity == "rare" then "R"
|
||||
else if card.rarity == "mythic rare" then "M"
|
||||
else if card.rarity == "special" then "S"
|
||||
else if card.rarity == "basic land" then "L" }
|
||||
else if card.rarity == "basic land" then "L"
|
||||
else "M"
|
||||
}
|
||||
|
||||
# Assigns default type symbols. Is modified for structure symbols.
|
||||
typesymbol_for :=
|
||||
|
||||
Reference in New Issue
Block a user