Indicator update (#76)
* update indicator script and remove color indicator dot styling options --------- Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
mse version: 2.0.0
|
||||
mse version: 2.5.0
|
||||
game: magic
|
||||
short name: Modern Extra
|
||||
full name: Modern w/ Extra Colors
|
||||
@@ -113,7 +113,44 @@ init script:
|
||||
comma_count := filter_text@(match:",")
|
||||
|
||||
# Should the card have a color indicator?
|
||||
has_identity := { styling.color_indicator }
|
||||
colors_from_mana_symbols := {
|
||||
str := []
|
||||
if contains(input, match:"W") then str := str + ["white"]
|
||||
if contains(input, match:"U") then str := str + ["blue"]
|
||||
if contains(input, match:"B") then str := str + ["black"]
|
||||
if contains(input, match:"R") then str := str + ["red"]
|
||||
if contains(input, match:"G") then str := str + ["green"]
|
||||
if contains(input, match:"E") then str := str + ["brown"]
|
||||
if contains(input, match:"K") then str := str + ["pink"]
|
||||
if contains(input, match:"P") then str := str + ["purple"]
|
||||
if contains(input, match:"L") then str := str + ["yellow"]
|
||||
if contains(input, match:"O") then str := str + ["orange"]
|
||||
|
||||
join(str, sep:", ")
|
||||
}
|
||||
has_identity_general := {
|
||||
tag := if face == 1 then "" else "_" + face
|
||||
indicator_field := extra_card.identity
|
||||
culled_indicator := cull_noncolors(cull_directions(indicator_field))
|
||||
color_field := extra_card.frame
|
||||
cost_field := card["casting_cost"+tag]
|
||||
culled_color := cull_directions(cull_noncolors(color_field))
|
||||
|
||||
default_from_casting_cost := colors_from_mana_symbols(cost_field)
|
||||
default_from_card_color := if chosen(color_field, choice:"colorless")
|
||||
then "" ## colorless
|
||||
else if default_from_casting_cost == "" and chosen(color_field, choice:"land")
|
||||
then "" ## land
|
||||
else if chosen(color_field, choice:"multicolor") and culled_color == ""
|
||||
then default_from_casting_cost ## 3+ multicolor
|
||||
else culled_color ## normal color
|
||||
#default_from_card_color := if chosen(color_field, choice:"colorless") then "" else if default_from_casting_cost == "" and chosen(color_field, choice:"land") then "" else if chosen(color_field, choice:"multicolor") and culled_color == "" then default_from_casting_cost else culled_color
|
||||
color_cost_disagree := default_from_card_color != default_from_casting_cost
|
||||
color_indicator_disagree := default_from_card_color != culled_indicator and indicator_field != color_field
|
||||
|
||||
color_cost_disagree or color_indicator_disagree
|
||||
}
|
||||
|
||||
|
||||
############################################################################################################ Scripts from Blends Package
|
||||
## Scripts being overwritten from /magic-blends.mse-include/new-blends
|
||||
@@ -1596,11 +1633,6 @@ styling field:
|
||||
name: alpha style blending
|
||||
description: Use Alpha-style dual blending
|
||||
initial: no
|
||||
styling field:
|
||||
type: boolean
|
||||
name: color indicator
|
||||
description: Should there be a color indicator dot?
|
||||
initial: no
|
||||
styling field:
|
||||
type: boolean
|
||||
name: inverted common symbol
|
||||
@@ -2036,7 +2068,7 @@ extra card field:
|
||||
choice:
|
||||
name: reversed
|
||||
script: card_color_filter(value)
|
||||
default: card_color(casting_cost: card.casting_cost, rules_text: card.rule_text, type: card.super_type, watermark: card.watermark, card_name: card.name)
|
||||
default: extra_card.frame
|
||||
extra card field:
|
||||
type: multiple choice
|
||||
name: pt box
|
||||
|
||||
Reference in New Issue
Block a user