mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
Another update to cost param. This one works.
Vanguard cost param updated as well. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@595 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+10
-15
@@ -235,9 +235,11 @@ init script:
|
|||||||
add := "" # default is nothing
|
add := "" # default is nothing
|
||||||
for_mana_costs := format_cost := {
|
for_mana_costs := format_cost := {
|
||||||
if input.separator_before == "—" then (
|
if input.separator_before == "—" then (
|
||||||
if contains(input.param, match:",") then
|
if contains(input.param, match:",") then (
|
||||||
"{add}<param-cost>{combined_cost(input.param)}</param-cost>"
|
if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then
|
||||||
else
|
"{add}<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||||
|
else "<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||||
|
) else
|
||||||
"<param-cost>{alternative_cost(input.param)}</param-cost>"
|
"<param-cost>{alternative_cost(input.param)}</param-cost>"
|
||||||
) else
|
) else
|
||||||
"{add}<param-mana>{input.param}</param-mana>"
|
"{add}<param-mana>{input.param}</param-mana>"
|
||||||
@@ -247,12 +249,6 @@ init script:
|
|||||||
replace_rule(match:",", replace:" and")+
|
replace_rule(match:",", replace:" and")+
|
||||||
replace_rule(match:"^[STXYZWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
|
replace_rule(match:"^[STXYZWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
|
||||||
replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||||
#format_alt_cost := {
|
|
||||||
# if input.separator_before == "—" then
|
|
||||||
# alternative_cost(input.param)
|
|
||||||
# else
|
|
||||||
# input.param
|
|
||||||
#}
|
|
||||||
long_dash := replace_rule(match:"-", replace:"—")
|
long_dash := replace_rule(match:"-", replace:"—")
|
||||||
# Utilities for keywords
|
# Utilities for keywords
|
||||||
has_cc := { card.casting_cost != "" }
|
has_cc := { card.casting_cost != "" }
|
||||||
@@ -1409,7 +1405,6 @@ keyword parameter type:
|
|||||||
name: add "pay " for mana costs
|
name: add "pay " for mana costs
|
||||||
description: When using mana only costs, words the reminder text as "pay <cost>"
|
description: When using mana only costs, words the reminder text as "pay <cost>"
|
||||||
script: \{for_mana_costs(add:"pay ", {input})\}
|
script: \{for_mana_costs(add:"pay ", {input})\}
|
||||||
#reminder script: format_alt_cost()
|
|
||||||
separator script: long_dash()
|
separator script: long_dash()
|
||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: number
|
name: number
|
||||||
@@ -1800,11 +1795,6 @@ keyword:
|
|||||||
match: Vanishing <atom-param>number</atom-param>
|
match: Vanishing <atom-param>number</atom-param>
|
||||||
mode: expert
|
mode: expert
|
||||||
reminder: This permanent comes into play with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter from it. When the last is removed, sacrifice it.
|
reminder: This permanent comes into play with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter from it. When the last is removed, sacrifice it.
|
||||||
keyword:
|
|
||||||
keyword: Grandeur
|
|
||||||
match: Grandeur
|
|
||||||
mode: pseudo
|
|
||||||
rules: Grandeur — Discard another card named ~: [effect].
|
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Deathtouch
|
keyword: Deathtouch
|
||||||
match: Deathtouch
|
match: Deathtouch
|
||||||
@@ -1874,3 +1864,8 @@ keyword:
|
|||||||
match: Fortify <atom-param>cost</atom-param>
|
match: Fortify <atom-param>cost</atom-param>
|
||||||
mode: expert
|
mode: expert
|
||||||
reminder: {param1}: Attach to target land you control. Fortify only as a sorcery. This card comes into play unattached and stays in play if the land leaves play.
|
reminder: {param1}: Attach to target land you control. Fortify only as a sorcery. This card comes into play unattached and stays in play if the land leaves play.
|
||||||
|
keyword:
|
||||||
|
keyword: Grandeur
|
||||||
|
match: Grandeur
|
||||||
|
mode: pseudo
|
||||||
|
rules: Grandeur — Discard another card named ~: [effect].
|
||||||
|
|||||||
+13
-25
@@ -39,22 +39,20 @@ init script:
|
|||||||
add := "" # default is nothing
|
add := "" # default is nothing
|
||||||
for_mana_costs := format_cost := {
|
for_mana_costs := format_cost := {
|
||||||
if input.separator_before == "—" then (
|
if input.separator_before == "—" then (
|
||||||
if not contains(input.param, match:",") then
|
if contains(input.param, match:",") then (
|
||||||
"<param-cost>{input.param}</param-cost>"
|
if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then
|
||||||
else
|
"{add}<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||||
"{add}<param-cost>{input.param}</param-cost>"
|
else "<param-cost>{combined_cost(input.param)}</param-cost>"
|
||||||
|
) else
|
||||||
|
"<param-cost>{alternative_cost(input.param)}</param-cost>"
|
||||||
) else
|
) else
|
||||||
"{add}<param-mana>{input.param}</param-mana>"
|
"{add}<param-mana>{input.param}</param-mana>"
|
||||||
}
|
}
|
||||||
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||||
combined_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:",", replace:" and")+
|
||||||
format_alt_cost := {
|
replace_rule(match:"^[STXYZWUBRG0-9/|]", in_context: "(^|[[:space:]])<match>", replace: "<sym-auto>&</sym-auto>")+
|
||||||
if input.separator_before == "—" and not contains(input.param, match:",") then
|
replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||||
alternative_cost(input.param)
|
|
||||||
else
|
|
||||||
combined_cost(input.param)
|
|
||||||
}
|
|
||||||
long_dash := replace_rule(match:"-", replace:"—")
|
long_dash := replace_rule(match:"-", replace:"—")
|
||||||
# Utilities for keywords
|
# Utilities for keywords
|
||||||
has_cc := { card.casting_cost != "" }
|
has_cc := { card.casting_cost != "" }
|
||||||
@@ -477,7 +475,6 @@ keyword parameter type:
|
|||||||
name: add "pay " for mana costs
|
name: add "pay " for mana costs
|
||||||
description: When using mana only costs, words the reminder text as "pay <cost>"
|
description: When using mana only costs, words the reminder text as "pay <cost>"
|
||||||
script: \{for_mana_costs(add:"pay ",{input})\}
|
script: \{for_mana_costs(add:"pay ",{input})\}
|
||||||
reminder script: format_alt_cost()
|
|
||||||
separator script: long_dash()
|
separator script: long_dash()
|
||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: number
|
name: number
|
||||||
@@ -867,10 +864,6 @@ keyword:
|
|||||||
match: vanishing <atom-param>number</atom-param>
|
match: vanishing <atom-param>number</atom-param>
|
||||||
mode: expert
|
mode: expert
|
||||||
reminder: It comes into play with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter from it. When the last is removed, sacrifice it.
|
reminder: It comes into play with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter from it. When the last is removed, sacrifice it.
|
||||||
keyword:
|
|
||||||
keyword: Grandeur
|
|
||||||
match: Grandeur
|
|
||||||
mode: pseudo
|
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Deathtouch
|
keyword: Deathtouch
|
||||||
match: deathtouch
|
match: deathtouch
|
||||||
@@ -896,15 +889,6 @@ keyword:
|
|||||||
match: absorb <atom-param>number</atom-param>
|
match: absorb <atom-param>number</atom-param>
|
||||||
mode: expert
|
mode: expert
|
||||||
reminder: If a source would deal damage to it, prevent {param1} of that damage.
|
reminder: If a source would deal damage to it, prevent {param1} of that damage.
|
||||||
keyword:
|
|
||||||
keyword: Fateseal
|
|
||||||
match: Fateseal <atom-param>number</atom-param>
|
|
||||||
mode: expert
|
|
||||||
reminder:
|
|
||||||
Look at the top {
|
|
||||||
if param1.value==1 then "card of an opponent's library, then you may put it on the bottom of that player's library."
|
|
||||||
else "{english_number(param1)} cards of an opponent's library, then put any number of them on the bottom of that player's library and the rest on top in any order."
|
|
||||||
}
|
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Fateseal
|
keyword: Fateseal
|
||||||
match: fateseal <atom-param>number</atom-param>
|
match: fateseal <atom-param>number</atom-param>
|
||||||
@@ -949,3 +933,7 @@ keyword:
|
|||||||
match: fortify <atom-param>cost</atom-param>
|
match: fortify <atom-param>cost</atom-param>
|
||||||
mode: expert
|
mode: expert
|
||||||
reminder: {param1}: Attach to target land you control. Fortify only as a sorcery. It comes into play unattached and stays in play if the land leaves play.
|
reminder: {param1}: Attach to target land you control. Fortify only as a sorcery. It comes into play unattached and stays in play if the land leaves play.
|
||||||
|
keyword:
|
||||||
|
keyword: Grandeur
|
||||||
|
match: Grandeur
|
||||||
|
mode: pseudo
|
||||||
|
|||||||
Reference in New Issue
Block a user