diff --git a/data/magic-m15-meld-3in1.mse-style/style b/data/magic-m15-meld-3in1.mse-style/style index b2853ca911..64d779dcf9 100644 --- a/data/magic-m15-meld-3in1.mse-style/style +++ b/data/magic-m15-meld-3in1.mse-style/style @@ -6,7 +6,7 @@ icon: card-sample.png position hint: 066 installer group: magic/m15 style/double faced -version: 2024-06-07 +version: 2026-07-15 depends on: package: magic.mse-game version: 2014-06-25 @@ -56,6 +56,98 @@ card region: y: 0 width: 375 height: 523 + +############################################################## Update scripts +update cards script: + before version: 2026-07-15 + description: Breaks the card down into three cards that use magic-m15-altered.mse-style + script: + new_stylesheet := "magic-m15-altered.mse-style" + new_version := "2025-10-05" + if version_is_older(exists_as_package(new_stylesheet), than: new_version) then [] else ( + + styling_data := [hybrid_name: if styling.grey_hybrid_name then "grey" else "hybrid"] + styling + + top_card := new_card( + copy_from: card, + ignore_field_not_found: true, + [ + uid: if card.uid == "" then new_uid() else card.uid, + transformation: if is_default(card.transformation) then nil else transform_symbol_backwards_compatibility(card.transformation), + pt_2: "", + pt_3: "", + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: styling_data + ] + ) + + bottom_card := new_card( + ignore_field_not_found: true, + [ + corners: if is_default(card.corners_2) then nil else card.corners_2, + card_color: if is_default(card.card_color_2) then nil else card.card_color_2, + name: card.name_2, + casting_cost: card.casting_cost_2, + image: if is_default(card.image_2) then nil else import_image(card.image_2), + indicator: if is_default(card.indicator_2) then nil else card.indicator_2, + type: card.type_2, + rarity: card.rarity_2, + stamp: if is_default(card.card_stamp_2) then nil else card.card_stamp_2, + text: card.text_2, + separator: card.separator_2, + pt: card.pt_2, + watermark: if is_default(card.watermark_2) then nil else card.watermark_2, + card_code_text: card.card_code_text_2, + custom_card_number: card.custom_card_number, + copyright: card.copyright_2, + illustrator: card.illustrator_2, + illustrator_brush: if is_default(card.illustrator_brush_2) then nil else card.illustrator_brush_2, + additional_credit: card.additional_credit_4, + additional_credit_brush: if is_default(card.additional_credit_brush_4) then nil else card.additional_credit_brush_4, + vorthos_box: card.vorthos_box_2, + the_list_icon: card.the_list_icon_2, + transformation: if is_default(card.transformation_2) then nil else transform_symbol_backwards_compatibility(card.transformation_2), + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: styling_data + ] + ) + + meld_card := new_card( + ignore_field_not_found: true, + [ + corners: if is_default(card.corners_3) then nil else card.corners_3, + name: card.name_3, + image: if is_default(extra_card.meld_image) then nil else import_image(extra_card.meld_image), + type: card.type_3, + rarity: card.rarity_3, + stamp: if is_default(card.card_stamp_3) then nil else card.card_stamp_3, + text: card.text_3, + separator: card.separator_3, + pt: card.pt_3, + watermark: if is_default(card.watermark_3) then nil else card.watermark_3, + card_code_text: card.card_code_text_3, + custom_card_number: card.custom_card_number, + copyright: card.copyright_3, + illustrator: card.illustrator_3, + illustrator_brush: if is_default(card.illustrator_brush_3) then nil else card.illustrator_brush_3, + additional_credit: card.additional_credit_5, + additional_credit_brush: if is_default(card.additional_credit_brush_5) then nil else card.additional_credit_brush_5, + the_list_icon: card.the_list_icon_3, + transformation: if is_default(card.transformation_3) then nil else transform_symbol_backwards_compatibility(card.transformation_3), + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: [frames: "clear"] + styling_data + ] + ) + + add_link(top_card, selected_relation: "Meld Base", linked_card: bottom_card, linked_relation: "Meld Catalyst") + add_link(top_card, selected_relation: "Meld Base", linked_card: meld_card, linked_relation: "Meld Result") + add_link(bottom_card, selected_relation: "Meld Catalyst", linked_card: meld_card, linked_relation: "Meld Result") + + [top_card, bottom_card, meld_card]) + ############################################################## Extra scripts init script: # Load scripts for image box