update sister games (#52)
Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
@@ -26,11 +26,11 @@ psi_filter_t := replace@( # Remove [] used for forcing psi symbols
|
||||
############################################################## Determine card color
|
||||
# Names of colors
|
||||
color_name := {
|
||||
if input = "W" then "crystal"
|
||||
else if input = "U" then "cryo"
|
||||
else if input = "B" then "shadow"
|
||||
else if input = "R" then "pyre"
|
||||
else if input = "G" then "xeno"
|
||||
if input == "W" then "crystal"
|
||||
else if input == "U" then "cryo"
|
||||
else if input == "B" then "shadow"
|
||||
else if input == "R" then "pyre"
|
||||
else if input == "G" then "xeno"
|
||||
else ""
|
||||
}
|
||||
color_names_1 := { color_name(colors.0) }
|
||||
@@ -90,7 +90,7 @@ text_to_color := {
|
||||
if text != "" then (
|
||||
if contains(text, match: "all colors") then (
|
||||
colors := "WUBRG"
|
||||
if resource = "resource" then resource_multicolor()
|
||||
if resource == "resource" then resource_multicolor()
|
||||
else psi_to_color(hybrid: "")
|
||||
) else (
|
||||
colors := ""
|
||||
@@ -99,11 +99,11 @@ text_to_color := {
|
||||
if contains(text, match: "shadow") then colors := colors + "B"
|
||||
if contains(text, match: "pyre") then colors := colors + "R"
|
||||
if contains(text, match: "xeno") then colors := colors + "G"
|
||||
if resource = "resource" then resource_multicolor()
|
||||
if resource == "resource" then resource_multicolor()
|
||||
else psi_to_color(hybrid: "")
|
||||
)
|
||||
)
|
||||
)
|
||||
) else ""
|
||||
) else ""
|
||||
}
|
||||
|
||||
# The color of a card
|
||||
@@ -389,6 +389,7 @@ sub_type_filter :=
|
||||
else if is_device(type) then "device"
|
||||
else if is_augment(type) then "augment"
|
||||
else if is_action(type) then "action"
|
||||
else ""
|
||||
if is_unit(type) or is_tribal(type) then (
|
||||
first := "<word-list-race>{ only_first(input) }</word-list-race>"
|
||||
next := only_next(input)
|
||||
@@ -473,11 +474,12 @@ word_count := break_text@(match:"[^[:space:]]+") + length
|
||||
|
||||
# Mana font scripts
|
||||
ancestral_mana := {false}
|
||||
white_text := {false}
|
||||
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
||||
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
||||
use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")}
|
||||
use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()}
|
||||
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
||||
use_large_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in casting costs")}
|
||||
use_small_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in text boxes")}
|
||||
use_color_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"colored mana symbols") and not use_hybrid_v_mana()}
|
||||
use_hybrid_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"hybrid with colors")}
|
||||
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
||||
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
||||
white_text := {false}
|
||||
v_mana_num := {max(to_number(set.number_hybrid_variants),0) or else -1}
|
||||
|
||||
Reference in New Issue
Block a user