mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added line height soft to magic-new-token.
More work on cost param for Magic. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@584 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user