fix error with dfc mutate

This commit is contained in:
cajun
2025-10-21 16:52:05 -05:00
parent 9727568dca
commit 8cd7d348f0

View File

@@ -713,7 +713,7 @@ init script:
use_leveler := face_leveler[face]() use_leveler := face_leveler[face]()
use_saga := face_saga[face]() use_saga := face_saga[face]()
use_mutate := face_mutate[face]() and face == 0 use_mutate := face_mutate[face]() and lv == 0
if not use_leveler and not use_saga and not use_mutate if not use_leveler and not use_saga and not use_mutate
then 0 then 0
@@ -746,7 +746,7 @@ init script:
then 327 + (2 * face) + chop + ["", {0}, lv_2_coordinate, lv_3_coordinate, lv_4_coordinate, {0}, lv_6_coordinate, lv_7_coordinate, lv_8_coordinate][adj_lv]() then 327 + (2 * face) + chop + ["", {0}, lv_2_coordinate, lv_3_coordinate, lv_4_coordinate, {0}, lv_6_coordinate, lv_7_coordinate, lv_8_coordinate][adj_lv]()
else if face_saga[face]() else if face_saga[face]()
then saga_top + chop then saga_top + chop
else if face_mutate[face]() else if face_mutate[face]() and lv == 0
then 329 + chop then 329 + chop
else 0 else 0
} }
@@ -758,7 +758,7 @@ init script:
if adj_lv > 4 then pt_field := card["pt_" + (adj_lv-1)] if adj_lv > 4 then pt_field := card["pt_" + (adj_lv-1)]
chop := to_number(lv_chop(styling["level_"+adj_lv+"_chop"], cell:0)) chop := to_number(lv_chop(styling["level_"+adj_lv+"_chop"], cell:0))
lv := lv - 1 lv := lv - 1
use_mutate := face_mutate[face-1]() and face == 1 use_mutate := face_mutate[face-1]() and lv == 0
face := face - 1 face := face - 1
if face_leveler[face]() and (lone_pt() or pt_field == "") if face_leveler[face]() and (lone_pt() or pt_field == "")
@@ -780,7 +780,7 @@ init script:
splits := ["", split_12, split_23, split_34, {437}, split_12b, split_23b, split_34b, {437}] splits := ["", split_12, split_23, split_34, {437}, split_12b, split_23b, split_34b, {437}]
split := splits[adj_lv]() split := splits[adj_lv]()
heights := ["", lv_1_height, lv_2_height, lv_3_height, lv_4_height, lv_5_height, lv_6_height, lv_7_height, lv_8_height] heights := ["", lv_1_height, lv_2_height, lv_3_height, lv_4_height, lv_5_height, lv_6_height, lv_7_height, lv_8_height]
use_mutate := face_mutate[face-1]() and face == 1 use_mutate := face_mutate[face-1]() and lv == 1
lv_bottom := 327 lv_bottom := 327
if lv != 1 and lv != 5 then lv_bottom := card_style["level_"+adj_lv+"_text"].top if lv != 1 and lv != 5 then lv_bottom := card_style["level_"+adj_lv+"_text"].top
lv := lv - 1 lv := lv - 1
@@ -2575,6 +2575,30 @@ card style:
line height soft: 0.9 line height soft: 0.9
line height hard max: {if is_modal(card.level_8_text) then 1.0 else 1.3 } line height hard max: {if is_modal(card.level_8_text) then 1.0 else 1.3 }
line height line max: 1.6 line height line max: 1.6
level 9 text:
left: { 377 + leveler_left(face:2, lv:1) }
top: { if not back_mutate() then 0 else leveler_top(face:2, lv:1) }
right: { 377 + leveler_right(face:2, lv:1) }
bottom: { if not back_mutate() then 0 else leveler_bottom(face:2, lv:1) }
font:
name: { body2_font() }
italic name: { body2_font_italic() }
size: { body2_font_size() }
scale down to: 6
color: { body2_font_color() }
symbol font:
name: { styling.text_box_mana_symbols }
size: { body2_font_size() }
alignment:
script: if chosen(styling.other_options, choice:"center front") then "middle center" else "middle left"
z index: 900
padding left: 6
padding right: 4
line height hard: {if is_modal(card.level_8_text) then 0.9 else 1.2 }
line height line: 1.5
line height soft: 0.9
line height hard max: {if is_modal(card.level_8_text) then 1.0 else 1.3 }
line height line max: 1.6
############################# Levels ############################# Levels
level 0: level 0:
z index: 910 z index: 910