Merge pull request #16 from ebbit1q/cockatrice_colors
fix color tags being different in v4 cockatrice exporter
This commit is contained in:
@@ -234,9 +234,9 @@ script:
|
|||||||
+ ">"+setcode+"\</set>"
|
+ ">"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -269,9 +269,9 @@ script:
|
|||||||
+"\n "+"\<set>"+setcode+"\</set>"
|
+"\n "+"\<set>"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Type
|
# Type
|
||||||
+"\n "+"\<type>"+xml_escape(replace(card.type, match:"—", replace:"-"))+"\</type>"
|
+"\n "+"\<type>"+xml_escape(replace(card.type, match:"—", replace:"-"))+"\</type>"
|
||||||
+maintype()
|
+maintype()
|
||||||
@@ -312,7 +312,7 @@ script:
|
|||||||
+ ">"+setcode+"\</set>"
|
+ ">"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+(if contains(card.shape, match:"flip") then
|
+(if contains(card.shape, match:"flip") then
|
||||||
(if contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"hybrid") then "M"
|
(if contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"hybrid") then "M"
|
||||||
else if contains(card.card_color, match:"white") then "W"
|
else if contains(card.card_color, match:"white") then "W"
|
||||||
@@ -338,7 +338,7 @@ script:
|
|||||||
else if contains(card.card_color, match:"green") or contains(card.card_color_2, match:"green") then "G"
|
else if contains(card.card_color, match:"green") or contains(card.card_color_2, match:"green") then "G"
|
||||||
else "")
|
else "")
|
||||||
)
|
)
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost
|
+"\n "+"\<manacost>"+card.casting_cost
|
||||||
+(if card.casting_cost_2 != "" then " // "+card.casting_cost_2)
|
+(if card.casting_cost_2 != "" then " // "+card.casting_cost_2)
|
||||||
@@ -384,9 +384,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -427,9 +427,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color II
|
# Color II
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color_2()
|
+ card_color_2()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost II
|
# Mana Cost II
|
||||||
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
||||||
# Converted Mana Cost II
|
# Converted Mana Cost II
|
||||||
@@ -471,9 +471,9 @@ script:
|
|||||||
+ ">"+setcode+"\</set>"
|
+ ">"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -526,9 +526,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -583,9 +583,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color II
|
# Color II
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color_2()
|
+ card_color_2()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost II
|
# Mana Cost II
|
||||||
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
||||||
# Converted Mana Cost II
|
# Converted Mana Cost II
|
||||||
@@ -639,9 +639,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -681,9 +681,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color II
|
# Color II
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color_2()
|
+ card_color_2()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost II
|
# Mana Cost II
|
||||||
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
||||||
# Converted Mana Cost II
|
# Converted Mana Cost II
|
||||||
@@ -737,9 +737,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+options.append_String_To_Names+strip_card_name(card_name())+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
@@ -795,9 +795,9 @@ script:
|
|||||||
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
+ " splitterPath=\""+"/"+strip_card_name(card.name_2)+"." + file_type() + "\" >"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color II
|
# Color II
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color_2()
|
+ card_color_2()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost II
|
# Mana Cost II
|
||||||
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost_2+"\</manacost>"
|
||||||
# Converted Mana Cost II
|
# Converted Mana Cost II
|
||||||
@@ -834,9 +834,9 @@ script:
|
|||||||
+ ">"+setcode+"\</set>"
|
+ ">"+setcode+"\</set>"
|
||||||
+"\n "+"\<prop>"
|
+"\n "+"\<prop>"
|
||||||
# Color
|
# Color
|
||||||
+"\n "+"\<color>"
|
+"\n "+"\<colors>"
|
||||||
+ card_color()
|
+ card_color()
|
||||||
+"\</color>"
|
+"\</colors>"
|
||||||
# Mana Cost
|
# Mana Cost
|
||||||
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
+"\n "+"\<manacost>"+card.casting_cost+"\</manacost>"
|
||||||
# Converted Mana Cost
|
# Converted Mana Cost
|
||||||
|
|||||||
Reference in New Issue
Block a user