Compare commits

17 Commits

Author SHA1 Message Date
Sebastian Lundegård Kylander
e151b04702 [-] choices 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
4c283a2b03 [-] localization 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
a032def8b2 add cards scripts 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
a654413fab card fields 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
0c85574a44 statistics 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
1de3b15b86 Add default image for orange 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
2fb3832c90 allies and enemies 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
99208d43c9 sorting order 2026-03-29 21:23:27 +02:00
Sebastian Lundegård Kylander
19f1640b97 Add orange field 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
306a143b80 WUBRG -> WUBRGO 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
54a055ecff Add desert 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
14a949a849 Move order of pre-existing orange cases 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
9f851a387b Handle strings and keys involving orange 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
13848220fc Add orange mana symbol 2026-03-29 21:23:26 +02:00
Sebastian Lundegård Kylander
9a7b6698e1 Add image files for orange 2026-03-29 21:23:25 +02:00
Sebastian Lundegård Kylander
20b224a35d Prepare for more colors 2026-03-29 21:14:44 +02:00
Sebastian Lundegård Kylander
bc2d16cb79 Rename wubrgc_break_statistic to color_code_break_statistic 2026-03-29 21:14:43 +02:00
23 changed files with 86 additions and 32 deletions

View File

@@ -830,12 +830,13 @@ stamp_hybrid := [
########################################################################
blend_colors := {
colors := sort_text( order: if card_is_wedge(input) then "(wbguro)" else "(wubrgo)"
, (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 chosen(choice:"orange" ) then "o"))
, (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 chosen(choice:"orange") then "o")
)
if multi and (hybrid or colors == "") then (
colors := colors + "m"
)
@@ -1121,8 +1122,8 @@ font_white := {
+ (if chosen(choice:"black" ) then "b")
+ (if chosen(choice:"red" ) then "r")
+ (if chosen(choice:"green" ) then "g")
+ (if chosen(choice:"orange" ) then "o"))
+ (if artifact then "a")
+ (if chosen(choice:"orange" ) then "o")
) + (if artifact then "a")
font_colors_white(
if chosen(choice:"land") then "l"
else if input == "artifact, multicolor" then "a"

View File

@@ -806,7 +806,7 @@ symbol:
text margin right: .21
text margin top: -.15
text margin bottom: -.06
code: [0-9](?!/[WUBRGCSTQ2])|.
code: [0-9](?!/[WUBRGOCSTQ2])|.
regex: yes
draw text: 0
text font:

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -819,7 +819,7 @@ languages := [
is_swamp : match@(match: "(?i)Swamp")
is_mountain : match@(match: "(?i)Mountain")
is_forest : match@(match: "(?i)Forest")
is_derast : match@(match: "(?i)Desert")
is_desert : match@(match: "(?i)Desert")
is_wastes : match@(match: "(?i)Wastes")
is_class : match@(match: "(?i)Class")

View File

@@ -1074,13 +1074,12 @@ remove_type := replace@(match: "(Artifact|Creature|Enchantment|Instant|Land|Plan
replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
replace@(match: "[ ]+", in_context: "<match>$", replace: "")
write_wubrg := {
(if match(input, match:"white") then "W" else "")+
(if match(input, match:"blue") then "U" else "")+
(if match(input, match:"black") then "B" else "")+
(if match(input, match:"red") then "R" else "")+
(if match(input, match:"green") then "G" else "")+
(if match(input, match:"orange") then "O" else "")
write_wubrg := {(if match(input, match:"white") then "W" else "")
+ (if match(input, match:"blue") then "U" else "")
+ (if match(input, match:"black") then "B" else "")
+ (if match(input, match:"red") then "R" else "")
+ (if match(input, match:"green") then "G" else "")
+ (if match(input, match:"orange") then "O" else "")
}
colored_mana := {to_number(
for each sym in cmc_split(to_text()) do (
@@ -1100,7 +1099,14 @@ generic_mana := {to_number(
}
primary_card_color := {
artifact := chosen(choice:"artifact") and not (chosen(choice:"white") or chosen(choice:"blue") or chosen(choice:"black") or chosen(choice:"red") or chosen(choice:"green") or chosen(choice:"orange"))
artifact := chosen(choice:"artifact")
and not ( chosen(choice:"white")
or chosen(choice:"blue")
or chosen(choice:"black")
or chosen(choice:"red")
or chosen(choice:"green")
or chosen(choice:"orange")
)
land := chosen(choice:"land")
multi := chosen(choice:"multicolor")
hybrid := chosen(choice:"hybrid")
@@ -1125,7 +1131,14 @@ primary_card_color := {
else input
}
sparker_card_color := {
artifact := chosen(choice:"artifact") and not (chosen(choice:"white") or chosen(choice:"blue") or chosen(choice:"black") or chosen(choice:"red") or chosen(choice:"green") or chosen(choice:"orange"))
artifact := chosen(choice:"artifact")
and not ( chosen(choice:"white")
or chosen(choice:"blue")
or chosen(choice:"black")
or chosen(choice:"red")
or chosen(choice:"green")
or chosen(choice:"orange")
)
land := chosen(choice:"land")
multi := chosen(choice:"multicolor")
hybrid := chosen(choice:"hybrid")
@@ -1162,12 +1175,12 @@ contains_target := match@(match:"(?i)([^a-z]|^)targets?([^a-z]|$)")
is_targeted := { contains_target(card.rule_text) }
#### convert color word to mana symbol
color_to_mana := replace@(match: "white", replace: "[W]")+
replace@(match: "blue", replace: "[U]")+
replace@(match: "black", replace: "[B]")+
replace@(match: "red", replace: "[R]")+
replace@(match: "green", replace: "[G]")+
replace@(match: "orange", replace: "[O]")
color_to_mana := replace@(match: "white", replace: "[W]")
+ replace@(match: "blue", replace: "[U]")
+ replace@(match: "black", replace: "[B]")
+ replace@(match: "red", replace: "[R]")
+ replace@(match: "green", replace: "[G]")
+ replace@(match: "orange", replace: "[O]")
#### convert number word to digit
digital_number := {
@@ -5786,7 +5799,20 @@ apply_index := {
}
color: {fill_len(color_of_card(), lead:"A")},
"color category": {
indexes := [[lang_setting("colorless")], [lang_setting("white")], [lang_setting("blue")], [lang_setting("black")], [lang_setting("red")], [lang_setting("green")], [lang_setting("orange")], [lang_setting("purple")], [lang_setting("pink")], [lang_setting("yellow")], [lang_setting("brown")], [lang_setting("multicolor")], [lang_setting("hybrid")]]
indexes := [[lang_setting("colorless")]
,[lang_setting("white")]
,[lang_setting("blue")]
,[lang_setting("black")]
,[lang_setting("red")]
,[lang_setting("green")]
,[lang_setting("orange")]
,[lang_setting("purple")]
,[lang_setting("pink")]
,[lang_setting("yellow")]
,[lang_setting("brown")]
,[lang_setting("multicolor")]
,[lang_setting("hybrid")]
]
fill_len(position(of:[card.color_category], in:indexes, lead:"0", fill_to:2))
},
"exact color": {
@@ -5888,7 +5914,27 @@ skeleton_runner := {
(cards := cards + [new_card([name:prefix+letter_list[x]+fill_len(y, lead:"0"), rarity:rarity, super_type:super_type, casting_cost:mana_list[x]])];)
)
cards
}@(count:1, rarity:"common", type:"", prefix:"C", super_type:"", color_list:["white", "blue", "black", "red", "green", "orange"], letter_list:["W", "U", "B", "R", "G", "O"], mana_list:"nope")
}@(count:1
,rarity:"common"
,type:""
,prefix:"C"
,super_type:""
,color_list:["white"
,"blue"
,"black"
,"red"
,"green"
,"orange"
]
,letter_list:["W"
,"U"
,"B"
,"R"
,"G"
,"O"
]
,mana_list:"nope"
)
#### outside to make singleton scripts easier
blank_list_5 := ["","","","",""]
blank_list_10 := ["","","","","","","","","",""]

View File

@@ -219,7 +219,14 @@ color_category_statistic :=
}
face_color_category_statistic :=
{
artifact := chosen(choice:"artifact") and not (chosen(choice:"white") or chosen(choice:"blue") or chosen(choice:"black") or chosen(choice:"red") or chosen(choice:"green") or chosen(choice:"orange"))
artifact := (chosen(choice:"artifact"))
and not ( chosen(choice:"white")
or chosen(choice:"blue")
or chosen(choice:"black")
or chosen(choice:"red")
or chosen(choice:"green")
or chosen(choice:"orange")
)
land := chosen(choice:"land")
multi := chosen(choice:"multicolor")
hybrid := chosen(choice:"hybrid")
@@ -311,7 +318,7 @@ cc_colored_pips_totals_statistic :=
{
cc := card.casting_cost + (if check_2_statistic() then " " + card.casting_cost_2 else "")
join(wubrgoc_break_statistic(cc), sep:",")
join(color_code_break_statistic(cc), sep:",")
}
# Count how many cards have one white pip in their ability costs. Repeat for two white pips. Repeat for three, then four+, then again for other colors.
@@ -341,7 +348,7 @@ ability_colored_pips_totals_statistic :=
count := length(costs) - 1
result := for x from 0 to count do
(
"," + join(wubrgoc_break_statistic(costs[x]), sep:",")
"," + join(color_code_break_statistic(costs[x]), sep:",")
)
substring(result, begin: 1))
}
@@ -392,7 +399,7 @@ devotion_filters_statistic := [
C: filter_text@(match:"C")
]
color_pip_break_statistic := break_text@(match:"([A-Z0-9]/|[|])*[WUBRGO]")
wubrgoc_break_statistic := break_text@(match:"[WUBRGOC]")
color_code_break_statistic := break_text@(match:"[WUBRGOC]")
symbol_aggregate_statistic :=
{
devotion := devotion_filters_statistic[symbol](input)
@@ -467,7 +474,7 @@ face_mana_production_list_statistic :=
can_Chosen := lang_setting("chosen_mana_production")(combined_text) != ""
# the mana symbols we can produce
produced_symbols := wubrgoc_break_statistic(lang_setting("mana_symbol_production")(combined_text))
produced_symbols := color_code_break_statistic(lang_setting("mana_symbol_production")(combined_text))
(if lang_setting("is_plains")(sub) or contains_element(produced_symbols, element:"W") then ",W" else "") +
(if lang_setting("is_island")(sub) or contains_element(produced_symbols, element:"U") then ",U" else "") +