mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Fixed some problems with magic-extended-art.
Added infinity mana symbol. Added insert symbol menus to all symbol fonts that were lacking them. Updated font color choice for fpm promo to improve readability. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@765 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+14
-13
@@ -3,7 +3,7 @@ short name: Vanguard
|
||||
full name: Magic Vanguard
|
||||
icon: card-sample.png
|
||||
position hint: 02
|
||||
version: 2007-09-29
|
||||
version: 2007-10-13
|
||||
|
||||
# Author : Wolfwood
|
||||
# Most stuff is copy/pasted from magic.mse-game
|
||||
@@ -15,12 +15,13 @@ init script:
|
||||
############################################################## Sorting mana symbols
|
||||
|
||||
# correctly sort a mana symbol (no guild mana)
|
||||
mana_sort := sort_rule(order: "XYZ[0123456789]S(WUBRG)")
|
||||
mana_sort := sort_rule(order: "XYZI[0123456789]S(WUBRG)")
|
||||
# correctly sort guild mana
|
||||
mana_sort_guild := replace_rule( # swap these:
|
||||
match: "U/W|B/U|R/B|G/B|W/G|B/W|R/U|G/B|W/R|U/G",
|
||||
mana_sort_guild := replace_rule(
|
||||
match: "./.|././.|./././.|.[|]",
|
||||
in_context: "(^|[^/])<match>($|[^/])",
|
||||
replace: {input[2] + "/" + input[0]})
|
||||
replace: {sort_text(order:"in_place((WUBRG)")}
|
||||
)
|
||||
mana_has_guild := sort_rule(order: "</|>") # Is there guild or half mana in the input?
|
||||
# A mana cost can contain both normal and guild mana
|
||||
mana_filter := to_upper + {
|
||||
@@ -41,7 +42,7 @@ init script:
|
||||
for_mana_costs := format_cost := {
|
||||
if input.separator_before == "—" and contains(input.param, " ") then (
|
||||
if contains(input.param, match:",") then (
|
||||
if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then
|
||||
if match(match: "^[STXYZIWUBRG0-9/|]+,", input.param) then
|
||||
"{add}<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||
else "<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||
) else
|
||||
@@ -52,7 +53,7 @@ init script:
|
||||
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||
combined_cost := replace_rule(match:", [A-Z]", replace: { to_lower() })+
|
||||
replace_rule(match:",", replace:" and")+
|
||||
replace_rule(match:"^[STXYZWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
|
||||
replace_rule(match:"^[STXYZIWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
|
||||
replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||
long_dash := replace_rule(match:"-", replace:"—")
|
||||
# Utilities for keywords
|
||||
@@ -80,7 +81,7 @@ init script:
|
||||
|adds?|pay(ed)?[ ](with|using)
|
||||
)
|
||||
([ ]either)? # pay either X or Y
|
||||
([ ]<sym[^>]*>[XYZWUBRG0-9/|]+</sym[^>]*>[ ](and|or))* # pay X or Y
|
||||
([ ]<sym[^>]*>[TSXYZIWUBRG0-9/|]+</sym[^>]*>[ ](and|or))* # pay X or Y
|
||||
[ ]<match>
|
||||
([,.)]|$ # (end of word)
|
||||
|[ ][^ .,]*$ # still typing...
|
||||
@@ -131,16 +132,16 @@ init script:
|
||||
) +
|
||||
# step 4.5 : explict non mana symbols
|
||||
replace_rule(
|
||||
match: "\\][STXYZWUBRG0-9/|]+\\[",
|
||||
match: "\\][STXYZIWUBRG0-9/|]+\\[",
|
||||
replace: {"<nosym>" + mana_filter_t() + "</nosym>"} ) +
|
||||
# step 5 : add mana & tap symbols
|
||||
replace_rule(
|
||||
match: "[STXYZWUBRG0-9/|]+",
|
||||
match: "[STXYZIWUBRG0-9/|]+",
|
||||
in_context: mana_context,
|
||||
replace: {"<sym-auto>" + mana_filter_t() + "</sym-auto>"} ) +
|
||||
# step 5b : add explict mana symbols
|
||||
replace_rule(
|
||||
match: "\\[[STXYZWUBRG0-9/|]+\\]",
|
||||
match: "\\[[STXYZIWUBRG0-9/|]+\\]",
|
||||
replace: {"<sym>" + mana_filter_t() + "</sym>"} ) +
|
||||
# step 7 : italic reminder text
|
||||
replace_rule(
|
||||
@@ -419,7 +420,7 @@ keyword mode:
|
||||
|
||||
keyword parameter type:
|
||||
name: mana
|
||||
match: [STXYZ0-9WUBRG/|]+
|
||||
match: [STXYZI0-9WUBRG/|]+
|
||||
refer script:
|
||||
name: normal
|
||||
description: No changes made
|
||||
@@ -432,7 +433,7 @@ keyword parameter type:
|
||||
# By pichoro and bunnierein
|
||||
keyword parameter type:
|
||||
name: cost
|
||||
match: [ ][STXYZ0-9WUBRG/|]*|[-—][^(\n]*
|
||||
match: [ ][STXYZI0-9WUBRG/|]*|[-—][^(\n]*
|
||||
separator before is: [ —-]
|
||||
separator after is: [.]
|
||||
optional: false
|
||||
|
||||
Reference in New Issue
Block a user