Commit bac273a8 authored by pichoro's avatar pichoro

Updated prefix param.

Improved sort script to correctly sort cards like Pact cycle from Future Sight.
parent 697f1265
...@@ -149,12 +149,19 @@ init script: ...@@ -149,12 +149,19 @@ init script:
else if contains(card.casting_cost,match:"B") then "C" # black cards, black artifacts else if contains(card.casting_cost,match:"B") then "C" # black cards, black artifacts
else if contains(card.casting_cost,match:"R") then "D" # red cards, red artifacts else if contains(card.casting_cost,match:"R") then "D" # red cards, red artifacts
else if contains(card.casting_cost,match:"G") then "E" # green cards, green artifacts else if contains(card.casting_cost,match:"G") then "E" # green cards, green artifacts
else if is_multicolor(card.card_color) and card.casting_cost == "0" then "F" # free multicolor cards
else if is_multicolor(card.card_color) and card.casting_cost == "" then "F" # costless multicolor cards else if is_multicolor(card.card_color) and card.casting_cost == "" then "F" # costless multicolor cards
else if is_hybrid (card.card_color) and card.casting_cost == "0" then "G" # free hybrid cards
else if is_hybrid (card.card_color) and card.casting_cost == "" then "G" # costless hybrid cards else if is_hybrid (card.card_color) and card.casting_cost == "" then "G" # costless hybrid cards
else if chosen(choice:"white", card.card_color) and card.casting_cost== "0" then "A" # free white cards
else if chosen(choice:"white", card.card_color) and card.casting_cost == "" then "A" # costless white cards else if chosen(choice:"white", card.card_color) and card.casting_cost == "" then "A" # costless white cards
else if chosen(choice:"blue", card.card_color) and card.casting_cost == "0" then "B" # free blue cards
else if chosen(choice:"blue", card.card_color) and card.casting_cost == "" then "B" # costless blue cards else if chosen(choice:"blue", card.card_color) and card.casting_cost == "" then "B" # costless blue cards
else if chosen(choice:"black", card.card_color) and card.casting_cost == "0" then "C" # free black cards
else if chosen(choice:"black", card.card_color) and card.casting_cost == "" then "C" # costless black cards else if chosen(choice:"black", card.card_color) and card.casting_cost == "" then "C" # costless black cards
else if chosen(choice:"red", card.card_color) and card.casting_cost == "0" then "D" # free red cards
else if chosen(choice:"red", card.card_color) and card.casting_cost == "" then "D" # costless red cards else if chosen(choice:"red", card.card_color) and card.casting_cost == "" then "D" # costless red cards
else if chosen(choice:"green", card.card_color) and card.casting_cost == "0" then "E" # free green cards
else if chosen(choice:"green", card.card_color) and card.casting_cost == "" then "E" # costless green cards else if chosen(choice:"green", card.card_color) and card.casting_cost == "" then "E" # costless green cards
else "I" # colorless, artifacts else "I" # colorless, artifacts
}; };
...@@ -1388,7 +1395,7 @@ keyword parameter type: ...@@ -1388,7 +1395,7 @@ keyword parameter type:
name: prefix name: prefix
description: Prefix for things like "<something>walk" description: Prefix for things like "<something>walk"
optional: false optional: false
match: [A-Z][a-z, ]* match: [A-Z,a-z][A-Z,a-z ]*
example: Forest example: Forest
############################# All Magic keywords ############################# All Magic keywords
......
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