Commit 371d585b authored by Nemo Ma's avatar Nemo Ma

fixed all pendulum fiasco

Added variable is_legacy_pendulum()
...just read card_fields.
parent a08070c7
No preview for this file type
No preview for this file type
......@@ -33,6 +33,7 @@ init script:
is_monster := {card.card_type == "normal monster" or card.card_type == "effect monster" or card.card_type == "ritual monster" or card.card_type == "synchro monster" or card.card_type == "dark synchro monster" or card.card_type == "xyz monster" or card.card_type == "link monster" or card.card_type == "dlc monster" or card.card_type == "fusion monster" or card.card_type == "token monster" or card.card_type == "obelisk card" or card.card_type == "slifer card" or card.card_type == "ra card" or is_spatial()}
is_spatial := {card.card_type == "origin spatial monster" or card.card_type == "altered spatial monster"}
is_conjoint := {contains(card.pendulum, match: "conjoint") and not contains(card.card_type, match: "conjoint")}
is_legacy_pendulum:= {false}
############################################################## Extra style
styling field:
type: info
......
......@@ -25,7 +25,9 @@ card height: 614
card dpi: 178.0156
############################################################## Extra scripts
#This is a template with legacy pendulum implemention - its frame is together with card frame
init script:
is_legacy_pendulum:= {true}
############################################################## Extra style
styling field:
type: info
......
......@@ -139,17 +139,7 @@ card field:
choice: conjoint pendulum pandemonium
#Making Lyris' changes work with the original variant.
script:
#if card.stylesheet == "series10" and contains(card.card_type, match: "pendulum") then "pendulum"
#if card.stylesheet == "yugioh-series10" and
#(card.card_type=="pendulum normal monster" or
#"pendulum effect monster" or
#"pendulum fusion monster" or
#"pendulum ritual monster" or
#"pendulum synchro monster" or
#"pendulum dark synchro monster" or
#"pendulum xyz monster")
#then "pendulum"
#if card.stylesheet == "series10" then
if is_legacy_pendulum() then
if card.card_type == "pendulum normal monster" or
card.card_type == "pendulum effect monster" or
card.card_type == "pendulum fusion monster" or
......@@ -158,7 +148,8 @@ card field:
card.card_type == "pendulum dark synchro monster" or
card.card_type == "pendulum xyz monster"
then "pendulum"
#else "none"
else "none"
else value
############################# Link Marker Border
card field:
......
......@@ -3,6 +3,8 @@
is_cn := { styling.language == "chinese simplified" }
is_en := { styling.language == "english" }
is_jp := { styling.language == "japanese" }
#Let's place this =true in every template that has pendulum frame together with the card frame.
is_legacy_pendulum := {false}
#get_sep := {if is_en() then "<color:black>/</color:black>" else if is_cn() then "<i>/</i>" else "/" }
get_sep := {if is_en() then "<test>/</test>" else if is_cn() then "<i>/</i>" else "/" }
......
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