First Shadowmoor Update.

Untap symbols all around (Magic and Vanguard).
First two Shadowmoor keywords (Wither and Persist).

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@834 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
pichoro
2008-04-02 02:38:19 +00:00
parent ba8fb39283
commit 974779c944
43 changed files with 143 additions and 82 deletions
+21 -11
View File
@@ -5,7 +5,7 @@ installer group: magic/game files
icon: card-back.png
position hint: 01
version: 2008-03-25
version: 2008-04-01
depends on:
package: magic-blends.mse-include
version: 2007-09-23
@@ -35,7 +35,7 @@ init script:
else mana_sort()
}
# Like mana filter, only also allow tap symbols:
tap_filter := sort_rule(order: "<T>")
tap_filter := sort_rule(order: "<TQ>")
mana_filter_t := replace_rule( # Remove [] used for forcing mana symbols
match: "[\\[\\]]",
replace: ""
@@ -262,7 +262,7 @@ init script:
for_mana_costs := format_cost := {
if input.separator_before == "—" and contains(input.param, match: " ") then (
if contains(input.param, match:",") then (
if match(match: "^[STXYZIWUBRG0-9/|]+,", input.param) then
if match(match: "^[STQXYZIWUBRG0-9/|]+,", input.param) then
"{add}<param-cost>{combined_cost(input.param)}</param-cost>"
else "<param-cost>{combined_cost(input.param)}</param-cost>"
) else
@@ -273,7 +273,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:"^[STXYZIWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
replace_rule(match:"^[STQXYZIWUBRG0-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
@@ -296,8 +296,8 @@ init script:
|adds?|pay(ed)?[ ](with|using)
)
([ ]either)? # pay either X or Y
([ ]<sym[^>]*>[STXYZIWUBRG0-9/|]+</sym[^>]*>,)* # pay X, Y or Z
([ ]<sym[^>]*>[STXYZIWUBRG0-9/|]+</sym[^>]*>[ ](and|or|and/or))* # pay X or Y
([ ]<sym[^>]*>[STQXYZIWUBRG0-9/|]+</sym[^>]*>,)* # pay X, Y or Z
([ ]<sym[^>]*>[STQXYZIWUBRG0-9/|]+</sym[^>]*>[ ](and|or|and/or))* # pay X or Y
[ ]<match>
([,.)]|$ # (end of word)
|[ ][^ .,]*$ # still typing...
@@ -345,16 +345,16 @@ init script:
) +
# step 4 : explict non mana symbols
replace_rule(
match: "\\][STXYZIWUBRG0-9/|]+\\[",
match: "\\][STQXYZIWUBRG0-9/|]+\\[",
replace: {"<nosym>" + mana_filter_t() + "</nosym>"} ) +
# step 5 : add mana & tap symbols
replace_rule(
match: "[STXYZIWUBRG0-9/|]+",
match: "[STQXYZIWUBRG0-9/|]+",
in_context: mana_context,
replace: {"<sym-auto>" + mana_filter_t() + "</sym-auto>"} ) +
# step 5b : add explict mana symbols
replace_rule(
match: "\\[[STXYZIWUBRG0-9/|]+\\]",
match: "\\[[STQXYZIWUBRG0-9/|]+\\]",
replace: {"<sym>" + mana_filter_t() + "</sym>"} ) +
# step 7 : italic reminder text
replace_rule(
@@ -1859,7 +1859,7 @@ keyword mode:
keyword parameter type:
name: mana
match: [STXYZI0-9WUBRG/|]+
match: [STQXYZI0-9WUBRG/|]+
refer script:
name: normal
description: No changes made
@@ -1872,7 +1872,7 @@ keyword parameter type:
# By pichoro and bunnierein
keyword parameter type:
name: cost
match: [ ][STXYZI0-9WUBRG/|]*|[-—][^(\n]*
match: [ ][STQXYZI0-9WUBRG/|]*|[-—][^(\n]*
separator before is: [ —-]
separator after is: [.]
optional: false
@@ -2414,3 +2414,13 @@ keyword:
match: Kinship
mode: pseudo
rules: Kinship — At the beginning of your upkeep, you may look at the top card of your library. If that card shares a creature type with ~, you may reveal it. If you do, [effect].
keyword:
keyword: Persist
match: Persist
mode: expert
reminder: When this creature is put into a graveyard from play, if it had no -1/-1 counters on it, return it to play under its owner's control with a -1/-1 counter on it.
keyword:
keyword: Wither
match: Wither
mode: expert
reminder: This deals damage to creatures in the form of -1/-1 counters.