Commit e35fcc17 authored by pichoro's avatar pichoro

Added line height soft to magic-new-token.

More work on cost param for Magic.
parent adbbb789
......@@ -238,6 +238,7 @@ card style:
padding bottom: 2
line height hard: 1.2
line height line: 1.5
line height soft: 0.9
############################# PT
pt:
......
......@@ -256,16 +256,20 @@ init script:
add := "" # default is nothing
for_mana_costs := format_cost := {
if input.separator_before == "—" then (
if not contains(input.param, match:",") then
if not contains(input.param, match:"and") then
"<param-cost>{input.param}</param-cost>"
else if not contains(input.param, match:"<sym>") and not contains(input.param, match:"<sym-auto>") then
"<param-cost>{input.param}</param-cost>"
else
"{add}<param-cost>{input.param}</param-cost>"
) else
"{add}<param-mana>{input.param}</param-mana>"
"{add}<param-cost>{input.param}</param-cost>"
}
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
combined_cost := replace_rule(match:", [A-Z]", replace: { to_lower() })+
replace_rule(match:",", replace:", and")
replace_rule(match:",", replace:" and")+
replace_rule(match:"^[STXYZWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
replace_rule(match:"^[A-Z]", replace: { to_lower() })
format_alt_cost := {
if input.separator_before == "—" and not contains(input.param, match:",") then
alternative_cost(input.param)
......
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