symbol font updates

Fix #22
Fix white_text/v_mana_loc errors on sister games
This commit is contained in:
cajun
2023-11-19 16:07:45 -06:00
parent 8c617b5936
commit 88dedfd77d
6 changed files with 121 additions and 7 deletions

View File

@@ -470,3 +470,14 @@ primary_card_color := {
}
word_count := break_text@(match:"[^[:space:]]+") + length
# Mana font scripts
ancestral_mana := {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")}
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}