~SPM Keywords Update (#159)
* Updates English types and keywords to ATL * Updates German, Spanish, French, and Italian types and keywords to SPM * Updates Japanese types to SPM, adds Tiered, Job select, Warp and Void, waiting on scryfall for Station, Landers, and SPM * Adds lang_settings for is_spacecraft and is_planet * Adds is_mana_cost(param), so keywords can use "for " and "for its X cost" depending on if its a nice cost. Added to Mayhem and Web-slinging/Enweb. * Updates predef token reminder text
This commit is contained in:
@@ -1146,12 +1146,15 @@ for_mana_costs := {
|
||||
else "<param-cost>{alternative_cost(input.param, trim:long_nomana_cost, s:action)}</param-cost>{non}" #### else cost "non" with long formatting
|
||||
) else
|
||||
"<param-cost>{alternative_cost(input.param, s:action, trim:lower_first)}{non}</param-cost>" #### one, nonmana, part
|
||||
) else if match(match: "^[VLHSCAIETKQ\\?XYZIWUBRG0-9/|]+$", input.param) then #### one word
|
||||
) else if is_mana_cost(input.param) then #### one word
|
||||
"{add}<param-mana>{input.param}</param-mana>" #### mana
|
||||
else
|
||||
"<param-cost>{alternative_cost(input.param, trim:combined_cost, s:action)}</param-cost>{non}" #### nonmana
|
||||
}@(non:" in addition to any other costs", action:false, add:"")
|
||||
|
||||
#### return bool; is the input is a simple mana cost?
|
||||
is_mana_cost := {
|
||||
match(match: "^[VLHSCAIETKQ\\?XYZIWUBRG0-9/|]+$", input.param)
|
||||
}
|
||||
#### Convert extra costs
|
||||
long_cost := replace@(match:", [A-Z]", replace: { to_lower() } )
|
||||
long_nomana_cost := replace@(match:"[A-Z]", replace: { to_lower() })
|
||||
@@ -1257,6 +1260,25 @@ phy_reminder := {
|
||||
reminder_text := ""
|
||||
reminder_text
|
||||
}
|
||||
#### What number does the station/planet become a creature?
|
||||
station_number := {
|
||||
tag := if card.pt != ""
|
||||
then ""
|
||||
else if card.pt_2 != ""
|
||||
then "_1"
|
||||
else if card.pt_3 != ""
|
||||
then "_2"
|
||||
else if card.pt_4 != ""
|
||||
then "_2"
|
||||
else ""
|
||||
sn := 0
|
||||
if tag != "" then (
|
||||
level_circle := card["level"+tag]
|
||||
sn := replace(level_circle, match:"[-+][0-9]*", replace:"");
|
||||
if sn == 0 then sn := 0
|
||||
)
|
||||
sn
|
||||
}
|
||||
#### includes localization ability
|
||||
craft_code := {
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user