Update style

This commit is contained in:
cajun
2024-10-04 01:09:46 -05:00
parent be25e668c2
commit 57bd2da5da

View File

@@ -325,6 +325,36 @@ init script:
then "Gain the next level as a sorcery to add its ability."
else "As this Saga enters and after your draw step, add a lore counter. Sacrifice after III."
}
margin_top := {
number := to_int(replace(input, match: "lv", replace: "")) or else 999
if not a_saga() and not b_saga() then 0 else (
if input == "lv1"
then lv_chop(styling.level_1_chop, cell:3)
else if input == "lv2" then (
if front_class() or front_case()
then 30
else lv_chop(styling.level_2_chop, cell:3)
)
else if number >= 3 and number <= 8 then (
if (front_class() or front_case()) and card["level_{number}_text"] != ""
then 30
else lv_chop(styling.level_3_chop, cell:3)
)
else if input == "lv9"
then lv_chop(styling.level_5_chop, cell:3)
else if input == "lv10" then (
if back_class() or back_case()
then 30
else lv_chop(styling.level_6_chop, cell:3)
)
else if number >= 11 and number <= 16 then (
if (back_class() or back_case()) and card["level_{number}_text"] != ""
then 30
else lv_chop(styling.level_7_chop, cell:3)
)
else 0
)
}
is_shifted := {false}
back_shifted := {false}
@@ -974,8 +1004,8 @@ init script:
alt_textb := {back_class() or back_case()}
alt_text_scriptb := {
if back_class()
then combined_editor(field1: card.chapter_text_2, separator1:"<line>\n</line>", field2: card.level_5_text, separator2: "<line>\n</line>", field3: card.level_6_text, separator3: "<line>\n</line>", field4: card.level_7_text, separator4: "<line>\n</line>", field5: card.level_8_text)
else combined_editor(field1: card.level_5_text, separator1:"<line>\n</line>", field2: card.level_6_text, separator2: "<line>\n</line>", field3: card.level_7_text)
then combined_editor(field1: card.chapter_text_2, separator1:"<line>\n</line>", field2: card.level_9_text, separator2: "<line>\n</line>", field3: card.level_10_text, separator3: "<line>\n</line>", field4: card.level_11_text, separator4: "<line>\n</line>", field5: card.level_12_text)
else combined_editor(field1: card.level_9_text, separator1:"<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text)
}
lev0b := {
@@ -2671,7 +2701,7 @@ card style:
name: { styling.level_mana_symbols }
size: {if back_class() then 11 else 12 + if center_label2(0) then 0.5 else 0}
############################# Class costs
level 9 text:
level 17 text:
left: 190
width: {if not front_class() then 0 else if front_class() and card.level_2_text == "" then 0 else 80}
top: {lev2()+4}
@@ -2684,7 +2714,7 @@ card style:
name: magic-mana-small
size: 12
alignment: middle left
level 10 text:
level 18 text:
left: 190
width: {if not front_class() then 0 else if front_class() and card.level_3_text == "" then 0 else 80}
top: {lev3()+4}
@@ -2697,7 +2727,7 @@ card style:
name: magic-mana-small
size: 12
alignment: middle left
level 11 text:
level 19 text:
left: 190
width: {if not front_class() then 0 else if front_class() and card.level_4_text == "" then 0 else 80}
top: {lev4()+4}
@@ -2710,7 +2740,7 @@ card style:
name: magic-mana-small
size: 12
alignment: middle left
level 12 text:
level 20 text:
left: 567
width: {if not back_class() then 0 else if back_class() and card.level_6_text == "" then 0 else 80}
top: {lev2b()+4}
@@ -2723,7 +2753,7 @@ card style:
name: magic-mana-small
size: 12
alignment: middle left
level 13 text:
level 21 text:
left: 567
width: {if not back_class() then 0 else if back_class() and card.level_7_text == "" then 0 else 80}
top: {lev3b()+4}
@@ -2736,7 +2766,7 @@ card style:
name: magic-mana-small
size: 12
alignment: middle left
level 14 text:
level 22 text:
left: 567
width: {if not back_class() then 0 else if back_class() and card.level_8_text == "" then 0 else 80}
top: {lev4b()+4}