Commit 0599d14b authored by pichoro's avatar pichoro

Added new kind of multicolor gradient to old styles. (a la artfreakwiu)

Added option to old style to use all common rarity symbols (like before Exodus).
Cleaned up fix for horizontal hybrid textboxes and typelines.
Automatic paintbrushes for magic-textless, magic-new-token, futureshifts, and all FPM styles.
Removed paintbrush font and all associated scripts.
Newly failed attempt at making different colored colorless symbols in magic-mana-future work.
Non-mana costs work for Suspend and Forecast.
Guild mana for magic-mana-future.
Fixed problem relating to name alignment in magic-new-token.
Updated image mask and artifact masks for magic-futureshift.
Started alterations to font colors in magic-futureshift.
parent e6a41893
...@@ -43,6 +43,102 @@ vertical_card_hybrid := { ...@@ -43,6 +43,102 @@ vertical_card_hybrid := {
card_hybrid.horizontal[color_count]() card_hybrid.horizontal[color_count]()
} }
horizontal_card_hybrid := [
1: { template(colors[0]) }
2: card_hybrid_2
3: {linear_blend(
image1: template(colors[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: template(colors[2])
))}
4: {linear_blend(
# blend = 0.16
image1: template(colors[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: template(colors[3])
)))}
5: {linear_blend(
image1: template(colors[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: template(colors[4])
))))}
6: {linear_blend(
image1: template(colors[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: template(colors[5])
)))))}
7: {linear_blend(
image1: template(colors[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: template(colors[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: template(colors[6])
))))))}
]
card_hybrid := [ card_hybrid := [
radial: [ radial: [
0: { template("c") } 0: { template("c") }
...@@ -99,101 +195,7 @@ card_hybrid := [ ...@@ -99,101 +195,7 @@ card_hybrid := [
x2: 0, y2: 1.300 x2: 0, y2: 1.300
)} )}
] ]
horizontal: [ horizontal: horizontal_card_hybrid
1: { template(colors[0]) }
2: card_hybrid_2
3: {linear_blend(
image1: template(colors[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: template(colors[2])
))}
4: {linear_blend(
# blend = 0.16
image1: template(colors[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: template(colors[3])
)))}
5: {linear_blend(
image1: template(colors[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: template(colors[4])
))))}
6: {linear_blend(
image1: template(colors[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: template(colors[5])
)))))}
7: {linear_blend(
image1: template(colors[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: template(colors[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: template(colors[6])
))))))}
]
vertical: [ vertical: [
1: { template(colors[0]) } 1: { template(colors[0]) }
2: { linear_blend( 2: { linear_blend(
...@@ -401,101 +403,7 @@ textbox_hybrid := [ ...@@ -401,101 +403,7 @@ textbox_hybrid := [
6: { card_hybrid_2(colors: colors[4] + colors[3]) } 6: { card_hybrid_2(colors: colors[4] + colors[3]) }
7: { template(colors[4]) } 7: { template(colors[4]) }
] ]
horizontal: [#same as horizontal from card_hybrid, but referencing script through "card_hybrid.horizontal" wasn't working horizontal: horizontal_card_hybrid
1: { template(colors[0]) }
2: card_hybrid_2
3: {linear_blend(
image1: template(colors[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: template(colors[2])
))}
4: {linear_blend(
# blend = 0.16
image1: template(colors[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: template(colors[3])
)))}
5: {linear_blend(
image1: template(colors[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: template(colors[4])
))))}
6: {linear_blend(
image1: template(colors[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: template(colors[5])
)))))}
7: {linear_blend(
image1: template(colors[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: template(colors[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: template(colors[6])
))))))}
]
vertical: [ vertical: [
0: { template("c") } 0: { template("c") }
1: { template(colors[0]) } 1: { template(colors[0]) }
......
...@@ -31,7 +31,8 @@ init script: ...@@ -31,7 +31,8 @@ init script:
# Only white cards use a black font # Only white cards use a black font
# TODO: also for some overlays involving white # TODO: also for some overlays involving white
font_colors_white := { input != "w" } font_colors_white := { input != "w" }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style ############################################################## Extra style
styling field: styling field:
...@@ -394,19 +395,16 @@ card style: ...@@ -394,19 +395,16 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 200 right: 350
top : 340 top : 340
width: 150 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 1 z index: 1
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 8 size: 8
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 14
copyright line: copyright line:
left: 65 left: 65
top : 493 top : 493
...@@ -431,6 +429,13 @@ extra card field: ...@@ -431,6 +429,13 @@ extra card field:
name: pt symbols 2 name: pt symbols 2
script: "shieldsword" script: "shieldsword"
editable: false editable: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt symbols: pt symbols:
...@@ -454,3 +459,13 @@ extra card style: ...@@ -454,3 +459,13 @@ extra card style:
angle: 180 angle: 180
choice images: choice images:
shieldsword: ptshieldsword.png shieldsword: ptshieldsword.png
paintbrush:
right: { 350 - card_style.illustrator.content_width }
top : 341
width: 40
height: 15
z index: 1
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -37,7 +37,8 @@ init script: ...@@ -37,7 +37,8 @@ init script:
# Only white cards use a black font # Only white cards use a black font
# TODO: also for some overlays involving white # TODO: also for some overlays involving white
font_colors_white := { input != "w" } font_colors_white := { input != "w" }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style options ############################################################## Extra style options
...@@ -288,19 +289,16 @@ card style: ...@@ -288,19 +289,16 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 200 right: 350
top : 293 top : 293
width: 150 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 1 z index: 1
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 8 size: 8
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 14
copyright line: copyright line:
left: 65 left: 65
...@@ -321,6 +319,13 @@ extra card field: ...@@ -321,6 +319,13 @@ extra card field:
name: pt symbols name: pt symbols
script: "shieldsword" script: "shieldsword"
editable: false editable: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt symbols: pt symbols:
...@@ -333,3 +338,13 @@ extra card style: ...@@ -333,3 +338,13 @@ extra card style:
render style: image render style: image
choice images: choice images:
shieldsword: ptshieldsword.png shieldsword: ptshieldsword.png
paintbrush:
right: { 350 - card_style.illustrator.content_width }
top : 294
width: 40
height: 15
z index: 1
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -30,7 +30,6 @@ init script: ...@@ -30,7 +30,6 @@ init script:
# Use guild mana symbols? # Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
############################################################## Extra style ############################################################## Extra style
styling field: styling field:
...@@ -277,12 +276,12 @@ card style: ...@@ -277,12 +276,12 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 200 right: 350
top : 293 top : 293
width: 150 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 1 z index: 1
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 8 size: 8
...@@ -317,6 +316,17 @@ extra card field: ...@@ -317,6 +316,17 @@ extra card field:
name: pt symbols name: pt symbols
script: "shieldsword" script: "shieldsword"
editable: false editable: false
extra card field:
type: choice
name: black paintbrush
editable: false
choice: black
extra card field:
type: choice
name: white paintbrush
editable: false
choice: white
extra card style: extra card style:
pt symbols: pt symbols:
left: 25 left: 25
...@@ -328,3 +338,23 @@ extra card style: ...@@ -328,3 +338,23 @@ extra card style:
render style: image render style: image
choice images: choice images:
shieldsword: ptshieldsword.png shieldsword: ptshieldsword.png
black paintbrush:
right: { 350 - card_style.illustrator.content_width }
top : 294
width: 40
height: 15
z index: 1
render style: image
visible: { styling.font_color == "black" }
choice images:
black: paintbrush.png
white paintbrush:
right: { 350 - card_style.illustrator.content_width }
top : 294
width: 40
height: 15
z index: 1
render style: image
visible: { styling.font_color == "white" }
choice images:
white: paintbrush_w.png
...@@ -40,6 +40,8 @@ init script: ...@@ -40,6 +40,8 @@ init script:
# Only white cards use a black font # Only white cards use a black font
# TODO: also for some overlays involving white # TODO: also for some overlays involving white
font_colors_white := { input != "w" } font_colors_white := { input != "w" }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style ############################################################## Extra style
styling field: styling field:
...@@ -435,33 +437,27 @@ card style: ...@@ -435,33 +437,27 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 142.52 right: 246.41
top : 208 top : 208
width: 103.89 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 11.08 height: 11.08
z index: 1 z index: 1
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 5.54 size: 5.54
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 9.7
illustrator 2: illustrator 2:
left: 396.01 right: 499.9
top : 208 top : 208
width: 103.89 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 11.08 height: 11.08
z index: 1 z index: 1
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 5.54 size: 5.54
color: { font_color(card.card_color_2) } color: { font_color(card.card_color_2) }
symbol font:
name: magic-paintbrush
size: 9.7
copyright line: copyright line:
left: 45.02 left: 45.02
top : 348 top : 348
...@@ -497,6 +493,20 @@ extra card field: ...@@ -497,6 +493,20 @@ extra card field:
name: pt symbols 2 name: pt symbols 2
script: "shieldsword" script: "shieldsword"
editable: false editable: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card field:
type: choice
name: paintbrush 2
script: paintbrush_color(card.card_color_2)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt symbols: pt symbols:
...@@ -519,3 +529,23 @@ extra card style: ...@@ -519,3 +529,23 @@ extra card style:
render style: image render style: image
choice images: choice images:
shieldsword: ptshieldsword.png shieldsword: ptshieldsword.png
paintbrush:
right: { 246.41 - card_style.illustrator.content_width }
top : 209
width: 30
height: 10
z index: 1
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
paintbrush 2:
right: { 499.9 - card_style.illustrator_2.content_width }
top : 209
width: 30
height: 10
z index: 1
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -36,6 +36,8 @@ init script: ...@@ -36,6 +36,8 @@ init script:
# TODO: also for some overlays involving white # TODO: also for some overlays involving white
font_colors_white := { input != "w" } font_colors_white := { input != "w" }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style ############################################################## Extra style
styling field: styling field:
type: choice type: choice
...@@ -286,19 +288,16 @@ card style: ...@@ -286,19 +288,16 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 200 right: 350
top : 460 top : 460
width: 150 width: { max(20, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 3 z index: 3
alignment: bottom right alignment: middle right
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 8 size: 8
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 14
copyright line: copyright line:
left: 65 left: 65
...@@ -334,6 +333,13 @@ extra card field: ...@@ -334,6 +333,13 @@ extra card field:
show statistics: false show statistics: false
editable: false editable: false
save value: false save value: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt symbols: pt symbols:
...@@ -368,3 +374,13 @@ extra card style: ...@@ -368,3 +374,13 @@ extra card style:
visible: { card.type != "" or card.illustrator != "" or card.copyright != "" } visible: { card.type != "" or card.illustrator != "" or card.copyright != "" }
image: { card_typeline() } image: { card_typeline() }
z index: 2 z index: 2
paintbrush:
right: { 350 - card_style.illustrator.content_width }
top : 461
width: 40
height: 15
z index: 3
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -65,7 +65,38 @@ init script: ...@@ -65,7 +65,38 @@ init script:
else "new" else "new"
} }
colorless_color := {
if contains(card.card_color, match: "white")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "w"
else if contains(card.card_color, match: "blue")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "u"
else if contains(card.card_color, match: "black")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "b"
else if contains(card.card_color, match: "red")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "r"
else if contains(card.card_color, match: "green")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "g"
else "c"
}
font_colors_white := { input != "w" and input != "c" and input != "a" and input != "l" and input != "m" } font_colors_white := { input != "w" and input != "c" and input != "a" and input != "l" and input != "m" }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style options ############################################################## Extra style options
...@@ -262,19 +293,16 @@ card style: ...@@ -262,19 +293,16 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 131 right: { if card.pt != "" then 281 else 341 }
top : 478 top : 478
width: { if card.pt != "" then 150 else 210 } width: { max(150, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 2 z index: 2
alignment: bottom right alignment: middle right
font: font:
name: MPlantin name: MPlantin
size: 8 size: 8
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 14
copyright line: copyright line:
left: 22 left: 22
...@@ -294,6 +322,13 @@ extra card field: ...@@ -294,6 +322,13 @@ extra card field:
name: pt box name: pt box
script: card.card_color script: card.card_color
editable: false editable: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt box: pt box:
...@@ -306,3 +341,13 @@ extra card style: ...@@ -306,3 +341,13 @@ extra card style:
render style: image render style: image
image: { card_ptbox() } image: { card_ptbox() }
mask: mask_pt.png mask: mask_pt.png
paintbrush:
right: { ( if card.pt != "" then 281 else 341 ) - card_style.illustrator.content_width }
top : 479
width: 40
height: 15
z index: 2
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -14,9 +14,6 @@ card dpi: 150 ...@@ -14,9 +14,6 @@ card dpi: 150
#Todo: #Todo:
#Colorless Frame #Colorless Frame
#Make different colored colorless mana symbols work #Make different colored colorless mana symbols work
#white font color blue land, red land, black land, and green land
#style choice to override font color?
#mana gears on colored artifacts need more color.
############################################################## Extra scripts ############################################################## Extra scripts
init script: init script:
...@@ -66,7 +63,70 @@ init script: ...@@ -66,7 +63,70 @@ init script:
# Use guild mana symbols? # Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
font_colors_white := { input != "w" and input != "c" and input != "a" and input != "l" and input != "m" } colorless_color := {
if contains(card.card_color, match: "white")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "w"
else if contains(card.card_color, match: "blue")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "u"
else if contains(card.card_color, match: "black")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "b"
else if contains(card.card_color, match: "red")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "r"
else if contains(card.card_color, match: "green")
and not contains(card.card_color, match: "hybrid")
and not contains(card.card_color, match: "multicolor")
and not contains(card.card_color, match: "artifact")
and not contains(card.card_color, match: "land") then "g"
else "c"
}
font_colors_white := { input == "b" or input == "bl" or input == "u" or input == "ul" or input == "r" or input == "rl" or input == "g" or input == "gl" }
font_white := {
hybrid := chosen(choice:"hybrid")
artifact := chosen(choice:"artifact")
colors := sort_text( order: "(wubrg)"
, (if chosen(choice:"white") then "w")
+ (if chosen(choice:"blue") then "u")
+ (if chosen(choice:"black") then "b")
+ (if chosen(choice:"red") then "r")
+ (if chosen(choice:"green") then "g"))
+ (if artifact then "a")
font_colors_white(
if chosen(choice:"land") and chosen(choice:"white") then "wl"
else if chosen(choice:"land") and chosen(choice:"blue") then "ul"
else if chosen(choice:"land") and chosen(choice:"black") then "bl"
else if chosen(choice:"land") and chosen(choice:"red") then "rl"
else if chosen(choice:"land") and chosen(choice:"green") then "gl"
else if chosen(choice:"land") then "l"
else if input == "artifact, multicolor" then "a"
else if chosen(choice:"multicolor") then "m"
else if artifact and not hybrid then "a"
else if colors == "" then "c"
else colors[
font_color_positions
[ if chosen(choice:"horizontal") then "horizontal"
else if chosen(choice:"vertical") then "vertical"
else if chosen(choice:"overlay") then "overlay"
else "radial"
][number_of_items(in: colors)]
]
)
}
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style options ############################################################## Extra style options
...@@ -278,7 +338,7 @@ card style: ...@@ -278,7 +338,7 @@ card style:
styling.center_text == "always" styling.center_text == "always"
then "middle center" then "middle center"
else "middle left" else "middle left"
z index: 2 z index: 3
padding left: 6 padding left: 6
padding top: 2 padding top: 2
padding right: 4 padding right: 4
...@@ -290,7 +350,7 @@ card style: ...@@ -290,7 +350,7 @@ card style:
top : 321 top : 321
width: 152 width: 152
height: 152 height: 152
z index: 1 z index: 2
render style: image render style: image
alignment: middle center alignment: middle center
include file: magic-watermarks.mse-include/watermarks include file: magic-watermarks.mse-include/watermarks
...@@ -313,19 +373,16 @@ card style: ...@@ -313,19 +373,16 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 131 right: { if card.pt != "" then 275 else 338 }
top : 475 top : 475
width: { if card.pt != "" then 144 else 207 } width: { max(150, card_style.illustrator.content_width) + 5 }
height: 16 height: 16
z index: 2 z index: 2
alignment: bottom right alignment: middle right
font: font:
name: MPlantin name: MPlantin
size: 8 size: 8
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 14
copyright line: copyright line:
left: 20 left: 20
...@@ -358,6 +415,13 @@ extra card field: ...@@ -358,6 +415,13 @@ extra card field:
script: card.card_color script: card.card_color
editable: false editable: false
save value: false save value: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
textbox: textbox:
...@@ -387,3 +451,13 @@ extra card style: ...@@ -387,3 +451,13 @@ extra card style:
visible: { card.pt != "" } visible: { card.pt != "" }
render style: image render style: image
image: { card_ptbox() } image: { card_ptbox() }
paintbrush:
right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width }
top : 476
width: 40
height: 15
z index: 2
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
mse version: 0.3.2 mse version: 0.3.2
# Symbol font in the normal, flat, style, used for text boxes and on old style cards # Symbol font in the beveled style used for casting costs on FPM cards
# Note: # Note:
# Define small_mana_t:="mana_t(_old)?.png" in the init script of the style # Define small_mana_t:="mana_t(_old)?.png" in the init script of the style
# #
......
mse version: 0.3.3 mse version: 0.3.3
# Symbol font in the 'popup' style, used for casting costs on modern cards # Symbol font in the 'futuristic' style, used for casting costs on futureshift cards
image font size: 135 image font size: 135
horizontal space: 2 horizontal space: 2
symbol: symbol:
image: mana_circle_w.png image: mana_circle_w.png
enabled: { contains(card.card_color, match:"white") and not contains(card.card_color, match:"blue") and not contains(card.card_color, match:"black") and not contains(card.card_color, match:"red") and not contains(card.card_color, match:"green") } enabled: { colorless_color() == "w" }
symbol: symbol:
image: mana_circle_u.png image: mana_circle_u.png
enabled: { contains(card.card_color, match:"blue") and not contains(card.card_color, match:"white") and not contains(card.card_color, match:"black") and not contains(card.card_color, match:"red") and not contains(card.card_color, match:"green") } enabled: { colorless_color() == "u" }
symbol: symbol:
image: mana_circle_b.png image: mana_circle_b.png
enabled: { contains(card.card_color, match:"black") and not contains(card.card_color, match:"blue") and not contains(card.card_color, match:"white") and not contains(card.card_color, match:"red") and not contains(card.card_color, match:"green") } enabled: { colorless_color() == "b" }
symbol: symbol:
image: mana_circle_r.png image: mana_circle_r.png
enabled: { contains(card.card_color, match:"red") and not contains(card.card_color, match:"blue") and not contains(card.card_color, match:"black") and not contains(card.card_color, match:"white") and not contains(card.card_color, match:"green") } enabled: { colorless_color() == "r" }
symbol: symbol:
image: mana_circle_g.png image: mana_circle_g.png
enabled: { contains(card.card_color, match:"green") and not contains(card.card_color, match:"blue") and not contains(card.card_color, match:"black") and not contains(card.card_color, match:"red") and not contains(card.card_color, match:"white") } enabled: { colorless_color() == "g" }
symbol: symbol:
image: mana_circle.png image: mana_circle.png
enabled: { not contains(card.card_color, match:"white") and not contains(card.card_color, match:"blue") and not contains(card.card_color, match:"black") and not contains(card.card_color, match:"red") and not contains(card.card_color, match:"green") } enabled: { colorless_color() == "c" }
symbol: symbol:
code: T code: T
image: mana_t.png image: mana_t.png
symbol:
code: W/U
image: mana_guild_wu.png
enabled: { guild_mana() }
symbol:
code: U/B
image: mana_guild_ub.png
enabled: { guild_mana() }
symbol:
code: B/R
image: mana_guild_br.png
enabled: { guild_mana() }
symbol:
code: R/G
image: mana_guild_rg.png
enabled: { guild_mana() }
symbol:
code: G/W
image: mana_guild_gw.png
enabled: { guild_mana() }
symbol:
code: W/B
image: mana_guild_wb.png
enabled: { guild_mana() }
symbol:
code: U/R
image: mana_guild_ur.png
enabled: { guild_mana() }
symbol:
code: B/G
image: mana_guild_bg.png
enabled: { guild_mana() }
symbol:
code: R/W
image: mana_guild_rw.png
enabled: { guild_mana() }
symbol:
code: G/U
image: mana_guild_gu.png
enabled: { guild_mana() }
symbol: symbol:
code: W/U code: W/U
image: mana_wu.png image: mana_wu.png
......
...@@ -13,7 +13,6 @@ card width: 375 ...@@ -13,7 +13,6 @@ card width: 375
card height: 523 card height: 523
card dpi: 150 card dpi: 150
#error list:
############################################################## Extra scripts ############################################################## Extra scripts
init script: init script:
...@@ -48,6 +47,8 @@ init script: ...@@ -48,6 +47,8 @@ init script:
# AE replacement shouldn't happen in the title, or else MSE compresses the symbol # AE replacement shouldn't happen in the title, or else MSE compresses the symbol
name_filter := { input } name_filter := { input }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Set info fields ############################################################## Set info fields
...@@ -127,9 +128,13 @@ card style: ...@@ -127,9 +128,13 @@ card style:
###################C######### Name line ###################C######### Name line
name: name:
left: 50 left:
{ if card_style.name.content_width > 269 then 50
else card_style.name.content_width * -0.5 + 184.5 }
top: 25 top: 25
width: 275 width:
{ if card_style.name.content_width > 269 then 275
else card_style.name.content_width + 6 }
height: 28 height: 28
alignment: bottom center justify-overflow alignment: bottom center justify-overflow
padding bottom: -2 padding bottom: -2
...@@ -262,9 +267,9 @@ card style: ...@@ -262,9 +267,9 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 27 left: 58
top : 481 top : 479
width: 246 width: 215
height: 16 height: 16
z index: 2 z index: 2
font: font:
...@@ -272,9 +277,6 @@ card style: ...@@ -272,9 +277,6 @@ card style:
size: 11 size: 11
weight: bold weight: bold
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 10.5
copyright line: copyright line:
left: 30 left: 30
...@@ -317,6 +319,13 @@ extra card field: ...@@ -317,6 +319,13 @@ extra card field:
editable: false editable: false
save value: false save value: false
show statistics: false show statistics: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt box: pt box:
...@@ -354,7 +363,6 @@ extra card style: ...@@ -354,7 +363,6 @@ extra card style:
width: 15 width: 15
height: 35 height: 35
z index: 2 z index: 2
visible: { card.name != "" }
render style: image render style: image
image: name-left.png image: name-left.png
name box right: name box right:
...@@ -365,7 +373,15 @@ extra card style: ...@@ -365,7 +373,15 @@ extra card style:
width: 14 width: 14
height: 35 height: 35
z index: 2 z index: 2
visible: { card.name != "" }
render style: image render style: image
image: name-right.png image: name-right.png
paintbrush:
left: 27
top : 481
width: 30
height: 11
z index: 2
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -48,7 +48,9 @@ init script: ...@@ -48,7 +48,9 @@ init script:
) )
else if multi then else if multi then
masked_blend( masked_blend(
mask: "multicolor_blend_{type}.png", mask: ( if styling.type_of_gradient_multicolor == "full card" then "multicolor_blend_{type}.png"
else if styling.type_of_gradient_multicolor == "trim only" then "multicolor_blend_{type}2.png"
else "multicolor_blend_{type}.png" ),
dark: template("m"), dark: template("m"),
light: base, light: base,
) )
...@@ -103,6 +105,13 @@ styling field: ...@@ -103,6 +105,13 @@ styling field:
name: popup mana symbols name: popup mana symbols
description: Use the symbols of the casting cost line inside the text box as well description: Use the symbols of the casting cost line inside the text box as well
initial: no initial: no
styling field:
type: choice
name: type of gradient multicolor
description: What parts of the card should be blended for gradient multicolor?
choice: full card
choice: trim only
initial: full card
styling field: styling field:
type: choice type: choice
name: tap symbol name: tap symbol
...@@ -119,6 +128,11 @@ styling field: ...@@ -119,6 +128,11 @@ styling field:
choice: short text only choice: short text only
choice: never choice: never
initial: never initial: never
styling field:
type: boolean
name: colored rarities
description: Should rarity symbols be different colors, such as gold, silver, and purple?
initial: yes
styling style: styling style:
use guild mana symbols: use guild mana symbols:
...@@ -284,9 +298,21 @@ card style: ...@@ -284,9 +298,21 @@ card style:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common") common: script: symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "olduncommon") uncommon:
rare: script: symbol_variation(symbol: set.symbol, variation: "oldrare") script:
special: script: symbol_variation(symbol: set.symbol, variation: "special") if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "olduncommon")
else symbol_variation(symbol: set.symbol, variation: "common")
rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "oldrare")
else symbol_variation(symbol: set.symbol, variation: "common")
special:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "special")
else symbol_variation(symbol: set.symbol, variation: "common")
rarity 2: rarity 2:
left: 480 left: 480
...@@ -299,9 +325,21 @@ card style: ...@@ -299,9 +325,21 @@ card style:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common") common: script: symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "olduncommon") uncommon:
rare: script: symbol_variation(symbol: set.symbol, variation: "oldrare") script:
special: script: symbol_variation(symbol: set.symbol, variation: "special") if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "olduncommon")
else symbol_variation(symbol: set.symbol, variation: "common")
rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "oldrare")
else symbol_variation(symbol: set.symbol, variation: "common")
special:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "special")
else symbol_variation(symbol: set.symbol, variation: "common")
############################# Text box ############################# Text box
text: text:
......
...@@ -33,6 +33,40 @@ init script: ...@@ -33,6 +33,40 @@ init script:
# Only white cards use a black font # Only white cards use a black font
font_colors_white := { input != "w" } font_colors_white := { input != "w" }
color_combination := {
# The base hybrid, without the outer frame blended over it
base := base_hybrid[shape][color_count]()
# Put a frame around it?
if land and not colored_lands then
masked_blend(
mask: "multicolor_blend_{type}.png",
dark: land_template("c"),
light: base,
)
else if multi then
masked_blend(
mask: ( if styling.type_of_gradient_multicolor == "full card" then "multicolor_blend_{type}.png"
else if styling.type_of_gradient_multicolor == "trim only" then "multicolor_blend_{type}2.png"
else "multicolor_blend_{type}.png" ),
dark: template("m"),
light: base,
)
else if artifact then
masked_blend(
mask: "multicolor_blend_{type}.png",
dark: template("a"),
light: base,
)
else if color_count > 1 and mask_hybrid_with_land() then
masked_blend(
mask: "hybrid_blend_{type}.png",
dark: land_template("c"),
light: base,
)
else base
}
############################################################## Set info fields ############################################################## Set info fields
set info style: set info style:
...@@ -66,6 +100,13 @@ styling field: ...@@ -66,6 +100,13 @@ styling field:
name: popup mana symbols name: popup mana symbols
description: Use the symbols of the casting cost line inside the text box as well description: Use the symbols of the casting cost line inside the text box as well
initial: no initial: no
styling field:
type: choice
name: type of gradient multicolor
description: What parts of the card should be blended for gradient multicolor?
choice: full card
choice: trim only
initial: full card
styling field: styling field:
type: choice type: choice
name: tap symbol name: tap symbol
...@@ -82,6 +123,11 @@ styling field: ...@@ -82,6 +123,11 @@ styling field:
choice: short text only choice: short text only
choice: never choice: never
initial: short text only initial: short text only
styling field:
type: boolean
name: colored rarities
description: Should rarity symbols be different colors, such as gold, silver, and purple?
initial: yes
styling style: styling style:
use guild mana symbols: use guild mana symbols:
...@@ -177,9 +223,21 @@ card style: ...@@ -177,9 +223,21 @@ card style:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common") common: script: symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "olduncommon") uncommon:
rare: script: symbol_variation(symbol: set.symbol, variation: "oldrare") script:
special: script: symbol_variation(symbol: set.symbol, variation: "special") if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "olduncommon")
else symbol_variation(symbol: set.symbol, variation: "common")
rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "oldrare")
else symbol_variation(symbol: set.symbol, variation: "common")
special:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "special")
else symbol_variation(symbol: set.symbol, variation: "common")
############################# Text box ############################# Text box
text: text:
......
...@@ -52,7 +52,9 @@ init script: ...@@ -52,7 +52,9 @@ init script:
) )
else if multi then else if multi then
masked_blend( masked_blend(
mask: "multicolor_blend_{type}.png", mask: ( if styling.type_of_gradient_multicolor == "full card" then "multicolor_blend_{type}.png"
else if styling.type_of_gradient_multicolor == "trim only" then "multicolor_blend_{type}2.png"
else "multicolor_blend_{type}.png" ),
dark: template("m"), dark: template("m"),
light: base, light: base,
) )
...@@ -108,6 +110,13 @@ styling field: ...@@ -108,6 +110,13 @@ styling field:
name: alpha style blending name: alpha style blending
description: Use Alpha-style dual blending description: Use Alpha-style dual blending
initial: no initial: no
styling field:
type: choice
name: type of gradient multicolor
description: What parts of the card should be blended for gradient multicolor?
choice: full card
choice: trim only
initial: full card
styling field: styling field:
type: choice type: choice
name: tap symbol name: tap symbol
...@@ -124,7 +133,11 @@ styling field: ...@@ -124,7 +133,11 @@ styling field:
choice: short text only choice: short text only
choice: never choice: never
initial: never initial: never
styling field:
type: boolean
name: colored rarities
description: Should rarity symbols be different colors, such as gold, silver, and purple?
initial: yes
styling style: styling style:
use guild mana symbols: use guild mana symbols:
choice images: choice images:
...@@ -240,9 +253,21 @@ card style: ...@@ -240,9 +253,21 @@ card style:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common") common: script: symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "olduncommon") uncommon:
rare: script: symbol_variation(symbol: set.symbol, variation: "oldrare") script:
special: script: symbol_variation(symbol: set.symbol, variation: "special") if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "olduncommon")
else symbol_variation(symbol: set.symbol, variation: "common")
rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "oldrare")
else symbol_variation(symbol: set.symbol, variation: "common")
special:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "special")
else symbol_variation(symbol: set.symbol, variation: "common")
############################# Text box ############################# Text box
text: text:
......
mse version: 0.3.2
#symbol font for custom magic paintbrushes
image font size: 135
horizontal space: 2
symbol:
code: O
image: paintbrush_w.png
image font size: 145
symbol:
code: P
image: paintbrush.png
image font size: 145
...@@ -36,6 +36,8 @@ init script: ...@@ -36,6 +36,8 @@ init script:
} }
# Use guild mana symbols? # Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
paintbrush_color := { if font_white() then "white" else "black" }
############################################################## Extra style options ############################################################## Extra style options
...@@ -180,18 +182,15 @@ card style: ...@@ -180,18 +182,15 @@ card style:
############################# Copyright stuff ############################# Copyright stuff
illustrator: illustrator:
left: 23 left: 54
top : 477 top : 477
width: 250 width: 219
height: 16 height: 16
z index: 1 z index: 1
font: font:
name: Matrix name: Matrix
size: 10 size: 10
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
symbol font:
name: magic-paintbrush
size: 10
copyright line: copyright line:
left: 26 left: 26
...@@ -211,7 +210,13 @@ extra card field: ...@@ -211,7 +210,13 @@ extra card field:
name: pt box name: pt box
script: card.card_color script: card.card_color
editable: false editable: false
extra card field:
type: choice
name: paintbrush
script: paintbrush_color(card.card_color)
editable: false
choice: black
choice: white
extra card style: extra card style:
pt box: pt box:
left: 277 left: 277
...@@ -223,3 +228,13 @@ extra card style: ...@@ -223,3 +228,13 @@ extra card style:
render style: image render style: image
mask: mask_pt.png mask: mask_pt.png
image: { card_ptbox() } image: { card_ptbox() }
paintbrush:
left: 23
top : 480
width: 30
height: 11
z index: 1
render style: image
choice images:
black: paintbrush.png
white: paintbrush_w.png
...@@ -12,8 +12,6 @@ init script: ...@@ -12,8 +12,6 @@ init script:
############################################################## Sorting mana symbols ############################################################## Sorting mana symbols
# Used in FPM and Future Sight
brush_sort := sort_rule(order: "OP")
# correctly sort mana symbols # correctly sort mana symbols
mana_sort := sort_rule(order: "ordered(XYZ)" mana_sort := sort_rule(order: "ordered(XYZ)"
+ "mixed(0123456789)" + "mixed(0123456789)"
...@@ -233,7 +231,7 @@ init script: ...@@ -233,7 +231,7 @@ init script:
# replaces — correctly # replaces — correctly
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 == "—" and contains(input.param, match: " ") then (
if contains(input.param, match:",") then ( if contains(input.param, match:",") then (
if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then
"{add}<param-cost>{combined_cost(input.param)}</param-cost>" "{add}<param-cost>{combined_cost(input.param)}</param-cost>"
...@@ -402,25 +400,7 @@ init script: ...@@ -402,25 +400,7 @@ init script:
# curly quotes # curly quotes
curly_quotes curly_quotes
# Used in FPM and Future Sight # Used in FPM and Future Sight
brush_context :=
"(?ix) # case insensitive, ignore whitespace
(^|[[:space:]\"(]) # start of a word
( (^)<match>(A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|Æ)
)
";
# Used in FPM and Future Sight
artist_line_filter := artist_line_filter :=
tag_remove_rule(tag: "<sym-auto>") +
replace_rule(
match: "\\][OP]+\\[",
replace: {"<nosym>" + brush_sort() + "</nosym>"} ) +
replace_rule(
match: "[OP|]+",
in_context: brush_context,
replace: {"<sym-auto>" + brush_sort() + "</sym-auto>"} ) +
replace_rule(
match: "\\[[OP]+\\]",
replace: {"<sym>" + brush_sort() + "</sym>"} ) +
replace_rule( replace_rule(
match: "AE", match: "AE",
replace: "Æ") + replace: "Æ") +
...@@ -1756,7 +1736,7 @@ keyword: ...@@ -1756,7 +1736,7 @@ keyword:
reminder: {if has_pt() then "This creature" else "This permanent"} comes into play with {english_number_a(param1)} +1/+1 counter(s) on it. Whenever {if has_pt() then "another" else "a"} creature comes into play, you may move a +1/+1 counter from {if has_pt() then "this creature" else "this permanent"} onto it. reminder: {if has_pt() then "This creature" else "This permanent"} comes into play with {english_number_a(param1)} +1/+1 counter(s) on it. Whenever {if has_pt() then "another" else "a"} creature comes into play, you may move a +1/+1 counter from {if has_pt() then "this creature" else "this permanent"} onto it.
keyword: keyword:
keyword: Forecast keyword: Forecast
match: Forecast — <atom-param>mana</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param> match: Forecast — <atom-param>action</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param>
mode: expert mode: expert
reminder: Play this ability only during your upkeep and only once each turn. reminder: Play this ability only during your upkeep and only once each turn.
keyword: keyword:
...@@ -1786,9 +1766,9 @@ keyword: ...@@ -1786,9 +1766,9 @@ keyword:
reminder: As long as this spell is on the stack, players can't play spells or activated abilities that aren't mana abilities. reminder: As long as this spell is on the stack, players can't play spells or activated abilities that aren't mana abilities.
keyword: keyword:
keyword: Suspend keyword: Suspend
match: Suspend <atom-param>number</atom-param>—<atom-param>mana</atom-param> match: Suspend <atom-param>number</atom-param>—<atom-param>cost</atom-param>
mode: expert mode: expert
reminder: Rather than play this card from your hand,{if has_cc() then " you may" else ""} pay {param2} and remove it from the game with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter. When the last is removed, play it without paying its mana cost.{if has_pt() then " It has haste." else ""} reminder: Rather than play this card from your hand,{if has_cc() then " you may" else ""} {for_mana_costs(add:"pay ", param2)} and remove it from the game with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter. When the last is removed, play it without paying its mana cost.{if has_pt() then " It has haste." else ""}
keyword: keyword:
keyword: Vanishing keyword: Vanishing
match: Vanishing <atom-param>number</atom-param> match: Vanishing <atom-param>number</atom-param>
......
...@@ -38,7 +38,7 @@ init script: ...@@ -38,7 +38,7 @@ init script:
# replaces — correctly # replaces — correctly
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 == "—" and contains(input.param, " ") then (
if contains(input.param, match:",") then ( if contains(input.param, match:",") then (
if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then if match(match: "^[STXYZWUBRG0-9/|]+,", input.param) then
"{add}<param-cost>{combined_cost(input.param)}</param-cost>" "{add}<param-cost>{combined_cost(input.param)}</param-cost>"
...@@ -714,16 +714,6 @@ keyword: ...@@ -714,16 +714,6 @@ keyword:
if param1.value==1 then "card of your library, then you may put that card on the bottom of your library." if param1.value==1 then "card of your library, then you may put that card on the bottom of your library."
else "{english_number(param1)} cards of your library. Put any number of them on the bottom of your library in any order and the rest on top in any order." else "{english_number(param1)} cards of your library. Put any number of them on the bottom of your library in any order and the rest on top in any order."
} }
keyword:
keyword: Scry
match: scry <atom-param>number</atom-param>
mode: expert
reminder:
To scry {param1}, look at the top {
if param1.value==1 then "card of your library, then you may put that card on the bottom of your library."
else "{english_number(param1)} cards of your library. Put any number of them on the bottom of your library in any order and the rest on top in any order."
}
keyword: keyword:
keyword: Sunburst keyword: Sunburst
match: sunburst match: sunburst
...@@ -827,7 +817,7 @@ keyword: ...@@ -827,7 +817,7 @@ keyword:
reminder: It comes into play with {english_number_a(param1)} +1/+1 counter(s) on it. Whenever a creature comes into play, you may move a +1/+1 counter from the permanent onto it. reminder: It comes into play with {english_number_a(param1)} +1/+1 counter(s) on it. Whenever a creature comes into play, you may move a +1/+1 counter from the permanent onto it.
keyword: keyword:
keyword: Forecast keyword: Forecast
match: forecast — <atom-param>mana</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param> match: forecast — <atom-param>action</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param>
mode: expert mode: expert
reminder: Play the ability only during your upkeep and only once each turn. reminder: Play the ability only during your upkeep and only once each turn.
keyword: keyword:
...@@ -856,7 +846,7 @@ keyword: ...@@ -856,7 +846,7 @@ keyword:
reminder: As long as it is on the stack, players can't play spells or activated abilities that aren't mana abilities. reminder: As long as it is on the stack, players can't play spells or activated abilities that aren't mana abilities.
keyword: keyword:
keyword: Suspend keyword: Suspend
match: suspend <atom-param>number</atom-param>—<atom-param>mana</atom-param> match: suspend <atom-param>number</atom-param>—<atom-param>cost</atom-param>
mode: expert mode: expert
reminder: Rather than play it from your hand, you may pay {param2} and remove it from the game with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter. When the last is removed, play it without paying its mana cost. If it is a creature, it has haste. reminder: Rather than play it from your hand, you may pay {param2} and remove it from the game with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter. When the last is removed, play it without paying its mana cost. If it is a creature, it has haste.
keyword: keyword:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment