mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Fixed some bugs in the sort_index function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@549 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -184,18 +184,18 @@ init script:
|
|||||||
else if chosen(choice:"blue", card_color) then "B" # Blue
|
else if chosen(choice:"blue", card_color) then "B" # Blue
|
||||||
else if chosen(choice:"black", card_color) then "C" # Black
|
else if chosen(choice:"black", card_color) then "C" # Black
|
||||||
else if chosen(choice:"red", card_color) then "D" # Red
|
else if chosen(choice:"red", card_color) then "D" # Red
|
||||||
else if chosen(choice:"white", card_color) then "E" # Green
|
else if chosen(choice:"green", card_color) then "E" # Green
|
||||||
else "I" # Non of the above = Colorless/artifact
|
else "I" # Non of the above = Colorless/artifact
|
||||||
) else (
|
) else (
|
||||||
# use the casting cost
|
# use the casting cost
|
||||||
colors := sort_rule(casting_cost, order: "<WUBRG>")
|
colors := sort(casting_cost, order: "<WUBRG>")
|
||||||
if colors == "" then "I" # Colorless
|
if colors == "" then "I" # Colorless
|
||||||
else if contains(casting_cost, match:"/") then "G" # Hybrid cost
|
else if contains(casting_cost, match:"/") then "G" # Hybrid cost
|
||||||
else if casting_cost == "W" then "A" # White
|
else if colors == "W" then "A" # White
|
||||||
else if casting_cost == "U" then "B" # Blue
|
else if colors == "U" then "B" # Blue
|
||||||
else if casting_cost == "B" then "C" # Black
|
else if colors == "B" then "C" # Black
|
||||||
else if casting_cost == "R" then "D" # Red
|
else if colors == "R" then "D" # Red
|
||||||
else if casting_cost == "G" then "E" # Green
|
else if colors == "G" then "E" # Green
|
||||||
else "F" # non of the above = multicolor
|
else "F" # non of the above = multicolor
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1400,6 +1400,10 @@ keyword parameter type:
|
|||||||
name: as words, use "" for 1
|
name: as words, use "" for 1
|
||||||
description: (, two, three)
|
description: (, two, three)
|
||||||
script: \{english_number_multiple({input})\}
|
script: \{english_number_multiple({input})\}
|
||||||
|
refer script:
|
||||||
|
name: as ordinal words
|
||||||
|
description: (first, second, third)
|
||||||
|
script: \{english_number_ordinal({input})\}
|
||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: action
|
name: action
|
||||||
match: [^(,\n]+
|
match: [^(,\n]+
|
||||||
|
|||||||
Reference in New Issue
Block a user