diff --git a/data/magic-cockatrice-v2.mse-export-template/export-template b/data/magic-cockatrice-v2.mse-export-template/export-template index a0f639ad8c..8d9dfb4977 100644 --- a/data/magic-cockatrice-v2.mse-export-template/export-template +++ b/data/magic-cockatrice-v2.mse-export-template/export-template @@ -1,20 +1,21 @@ -mse version: 2.5.0 +mse version: 2.6.0 +game: magic short name: Cockatrice full name: Exporter v2.2 position hint: 100 icon: icon.png -version: 2024-09-23 installer group: magic/Export/cockatrice + +version: 2026-04-30 depends on: package: magic.mse-game - version: 2009-07-23 + version: 2026-02-28 -game: magic create directory: true file type: *.xml|*.xml|*.*|*.* -# By K'yoril, edited by Advent, Updated by Reuben Covington, Updated by Cajun, Updated by Zeu +# By K'yoril, edited by Advent, Updated by Reuben Covington, Updated by Cajun, Updated by Zeu, Updated by GenevensiS # Updated to v4 xml by ebbit # Based on code by Pichoro, Idle Muse, Innuendo and Seeonee @@ -22,11 +23,13 @@ option field: type: choice name: info choice: Updated 2024/10, guide: https://tinyurl.com/ctexportv2 + option field: type: text name: cockatrice Set Type description: The "set type" your set will appear as in Cockatrice. "Custom" should be the default. default: Custom + option field: type: choice name: export Images @@ -35,20 +38,24 @@ option field: choice: JPG choice: PNG initial: no + option field: type: boolean name: tokens In Separate XML description: Tokens are exported to a Separate file called "[Set Code] Tokens.xml" initial: no + option field: type: boolean name: append Set Code To Tokens description: Adds the set code to token names to differentiate them from tokens with the same name from other sets. initial: no + option field: type: text name: append String To Names description: Appended to the front of all card names and image names. + option field: type: multiple choice name: rarities to export @@ -61,6 +68,7 @@ option field: choice: token choice: masterpiece initial: common, uncommon, rare, mythic rare, basic land, special, token, masterpiece + option style: rarities to export: render style: checklist @@ -71,6 +79,7 @@ option style: no: {built_in_image("bool_no")} JPG: {built_in_image("bool_yes")} PNG: {built_in_image("bool_yes")} + script: splitter_name := {false} ## experimental future thing for splitting dfc images #determine if the card is a type that is a "token" i.e. it should be batched with tokens instead of with other cards @@ -138,34 +147,52 @@ script: #helpers to find if persistent is desired for this token relation, and generate the requisite XML add_persistent := {if filter_text(match:"<(conjure|persistent)>", input) != "" then " persistent=\"persistent\"" else ""} - #helper functions for converted_related later - related_entry_regex := "(.+?[^[:space:]])(?:;|\n|$)" - - #convert the !related command field to XML blocks - convert_related := - replace@(match: "!related ?\n?", replace:"")+ #blank out the related command itself + #helper functions to clean related and token entries, and split them into a list + extract_entries := replace@(match: "\<",replace:"<") + #replace junk Start of Header characters with proper "less than sign"s replace@(match: "’",replace:"'") + #replace bad apostrophe with good apostrophe replace@(match: "",replace:"") + #replace accidentily capital X with lowercase X replace@(match:"!",replace: "") + #blank out the command ender - + break_text@(match:"(.+?[^[:space:]])(?:;|\n|$)") #split into list + extract_related := + replace@(match: "!related ?\n?", replace:"") + #blank out the related command itself + extract_entries + extract_token := + replace@(match: "!tokens? ?\n?", replace:"") + #blank out the token command itself + extract_entries + + #convert the !related command field to XML blocks + convert_related := + extract_related + #for every other card name, surround it with reverse-related tags and put in relevant attributes - {for each entry in (break_text(match:related_entry_regex, input)) do ("\n \" + xml_escape(strip_card_name(entry)) + "\")} - - #remove accidentily created empty XML blocks - remove_empty := replace@(match:" \<(reverse-)?related>\", replace:"") + {for each entry in input do ("\n \" + xml_escape(strip_card_name(entry)) + "\")} #convert the !token command field to XML blocks convert_token := - replace@(match: "!tokens? ?\n?", replace:"")+ #blank out the related command itself - replace@(match: "\<",replace:"<") + #replace junk Start of Header characters with proper "less than sign"s - replace@(match: "’",replace:"'") + #replace bad apostrophe with good apostrophe - replace@(match: "",replace:"") + #replace accidentily capital X with lowercase X - replace@(match:"!",replace: "") + #blank out the command ender - + extract_token + #for every other card name, surround it with reverse-related tags and put in relevant attributes - {for each entry in (break_text(match:related_entry_regex, input)) do ("\n \" + xml_escape(strip_card_name(entry)) + "\")} + {for each entry in input do ("\n \" + xml_escape(strip_card_name(entry)) + "\")} + #get the related cards that come from card links, remove those already in the notes + get_link_related := + { + notes_related := extract_related(filter_related(card.notes)) + link_related := get_cards_from_link(card, linked_relation: "Generator") + link_related := extract_related(for each related in link_related do (related.name + ";")) + [] + for each related in link_related do (if position(of:related, in:notes_related) == -1 then [related] else []) + } + + #get the tokens that come from card links, remove those already in the notes + get_link_token := + { + notes_token := extract_token(filter_token(card.notes)) + link_token := get_cards_from_link(card, linked_relation: "Token") + get_cards_from_link(card, linked_relation: "Emblem") + link_token := extract_token(for each token in link_token do (token.name + ";")) + [] + for each token in link_token do (if position(of:token, in:notes_token) == -1 then [token] else []) + } + + #remove accidentily created empty XML blocks + remove_empty := replace@(match:" \<(reverse-)?related>\", replace:"") filter_related := filter_text@(match:"!relate ?[^!]+!?") filter_token := filter_text@(match:"!tokens? ?[^!]+!?") @@ -223,6 +250,9 @@ script: #write a normal card's XML text write_normal := { + back := get_back_face(card) + front := get_front_face(card) + tokens := get_link_token(card) "\n "+"\" # Name +"\n "+"\"+xml_escape(options.append_String_To_Names+strip_card_name(card_name()))+"\" @@ -259,11 +289,19 @@ script: #CIPT + CIPT() # Rules Text - +"\n "+"\"+xml_escape(card_rules_text())+"\" + +"\n "+"\"+xml_escape(card_rules_text()) + + (if back != nil then "\n---\n(Back): "+xml_escape(strip_card_name(back.name)) else "") + + (if front != nil then "\n---\n(Front): "+xml_escape(strip_card_name(front.name)) else "") + +"\" + # Name of the related cards + + (if back != nil then "\n \"+xml_escape(strip_card_name(back.name))+"\" else "") + + (if front != nil then "\n \"+xml_escape(strip_card_name(front.name))+"\" else "") + + (for each token in tokens do ("\n \"+xml_escape(strip_card_name(token))+"\")) + (if filter_token(card.notes) != "" then remove_empty(convert_token(filter_token(card.notes)))) +"\n "+"\" } write_token := { + generators := get_link_related(card) "\n "+"\" # Name +"\n "+"\"+xml_escape(strip_card_name(card_name())+(if options.append_Set_Code_To_Tokens then " " + setcode else ""))+"\" @@ -296,9 +334,13 @@ script: # Reverse Related #if there is a !related block in the cards notes, set up the reverse-related XML elements + (if filter_related(card.notes) != "" then remove_empty(convert_related(filter_related(card.notes)))) + + (for each generator in generators do ("\n \"+xml_escape(strip_card_name(generator))+"\")) +"\n "+"\" } write_flip := { + back := get_back_face(card) + front := get_front_face(card) + tokens := get_link_token(card) "\n "+"\" # Name +"\n "+"\"+xml_escape(options.append_String_To_Names+strip_card_name(card_name())) @@ -366,7 +408,14 @@ script: else "1") +"\" # Rules Text - +"\n "+"\"+xml_escape(card_rules_text()+"\n--- \n"+card_rules_text_2())+"\" + +"\n "+"\"+xml_escape(card_rules_text()+"\n--- \n"+card_rules_text_2()) + + (if back != nil then "\n---\n(Back): "+xml_escape(strip_card_name(back.name)) else "") + + (if front != nil then "\n---\n(Front): "+xml_escape(strip_card_name(front.name)) else "") + +"\" + # Name of the related cards + + (if back != nil then "\n \"+xml_escape(strip_card_name(back.name))+"\" else "") + + (if front != nil then "\n \"+xml_escape(strip_card_name(front.name))+"\" else "") + + (for each token in tokens do ("\n \"+xml_escape(strip_card_name(token))+"\")) + (if filter_token(card.notes) != "" then remove_empty(convert_token(filter_token(card.notes)))) +"\n "+"\" } @@ -462,6 +511,9 @@ script: filter_text@(match:"•") write_walker := { + back := get_back_face(card) + front := get_front_face(card) + tokens := get_link_token(card) "\n "+"\" # Name +"\n "+"\"+xml_escape(options.append_String_To_Names+strip_card_name(card_name()))+"\" @@ -510,7 +562,13 @@ script: +card.loyalty_cost_4 +(if card.loyalty_cost_4 !="" then ": ") +(if contains(paragraph_count(card.rule_text), match:"•••") then split_text(match:"\n", card.rule_text).3))) + + (if back != nil then "\n---\n(Back): "+xml_escape(strip_card_name(back.name)) else "") + + (if front != nil then "\n---\n(Front): "+xml_escape(strip_card_name(front.name)) else "") +"\" + # Name of the related cards + + (if back != nil then "\n \"+xml_escape(strip_card_name(back.name))+"\" else "") + + (if front != nil then "\n \"+xml_escape(strip_card_name(front.name))+"\" else "") + + (for each token in tokens do ("\n \"+xml_escape(strip_card_name(token))+"\")) + (if filter_token(card.notes) != "" then remove_empty(convert_token(filter_token(card.notes)))) +"\n "+"\" } @@ -831,6 +889,9 @@ script: +"\n "+"\" } write_leveler := { + back := get_back_face(card) + front := get_front_face(card) + tokens := get_link_token(card) "\n "+"\" # Name +"\n "+"\"+xml_escape(options.append_String_To_Names+strip_card_name(card_name()))+"\" @@ -878,7 +939,13 @@ script: +"\nLEVEL " + card.level_2 +(if card.pt_3 != "" then "\n"+card.pt_3) +"\n"+card.rule_text_3) + + (if back != nil then "\n---\n(Back): "+xml_escape(strip_card_name(back.name)) else "") + + (if front != nil then "\n---\n(Front): "+xml_escape(strip_card_name(front.name)) else "") +"\" + # Name of the related cards + + (if back != nil then "\n \"+xml_escape(strip_card_name(back.name))+"\" else "") + + (if front != nil then "\n \"+xml_escape(strip_card_name(front.name))+"\" else "") + + (for each token in tokens do ("\n \"+xml_escape(strip_card_name(token))+"\")) + (if filter_token(card.notes) != "" then remove_empty(convert_token(filter_token(card.notes)))) +"\n "+"\" } @@ -953,4 +1020,4 @@ script: if (chosen(options.rarities_to_export, choice:"token") and options.tokens_In_Separate_XML) then write_text_file(file:set.set_code + " Tokens" + ".xml", to_string("\n\n \n"+write_all_tokens+"\n\n \n")) #other cards - to_string("\n\n \n \n "+setcode+"\n "+xml_escape(set.title)+"\n "+xml_escape(options.cockatrice_Set_Type)+"\n \n \n \n"+write_cards+if (chosen(options.rarities_to_export, choice:"token") and not(options.tokens_In_Separate_XML)) then ("\n\n Tokens\n"+write_all_tokens)+"\n\n \n") + to_string("\n\n \n \n "+setcode+"\n "+xml_escape(set.title)+"\n "+xml_escape(options.cockatrice_Set_Type)+"\n \n \n \n"+write_cards+(if chosen(options.rarities_to_export, choice:"token") and not(options.tokens_In_Separate_XML) then "\n\n Tokens\n"+write_all_tokens else "")+"\n\n \n") diff --git a/data/magic-egg-allinone-exporter.mse-export-template/build.bat b/data/magic-egg-allinone-exporter.mse-export-template/build.bat new file mode 100644 index 0000000000..5422f5f985 --- /dev/null +++ b/data/magic-egg-allinone-exporter.mse-export-template/build.bat @@ -0,0 +1,7 @@ +cd .. + +cd .. + +mse --create-installer magic-namecheck.mse-export-template + +ren "magic-namecheck.mse-installer" "Magic - Namecheck Export Template.mse-installer" \ No newline at end of file diff --git a/data/magic-egg-allinone-exporter.mse-export-template/export-template b/data/magic-egg-allinone-exporter.mse-export-template/export-template new file mode 100644 index 0000000000..01ad4b9b4f --- /dev/null +++ b/data/magic-egg-allinone-exporter.mse-export-template/export-template @@ -0,0 +1,466 @@ +mse version: 2.6.0 +game: magic +short name: Egg's All-in-One +full name: Egghub Exporter +position hint: 0 +icon: icon.png +installer group: magic/Export/Egg's All-in-One + + +version: 2026-04-30 +depends on: + package: magic.mse-game + version: 2026-02-28 +depends on: + package: magic-modules.mse-include + version: 2024-10-01 + +create directory: true +file type: *.txt|*.txt|*.*|*.* + +#JSON implementation by Fungustober and GenevensiS + +option field: + type: choice + name: image type + choice: png + choice: jpg + description: Image type, png for better quality, jpg for smaller file size + +option field: + type: choice + name: symbol rarity + choice: rare + choice: mythic rare + choice: uncommon + choice: common + description: Rarity for set logo / icon + +option field: + type: choice + name: draft structure + choice: play booster + choice: draft booster + choice: cube + choice: none + description: Format for this set's draft format + +option field: + type: text + name: formats + description: formats in which this set is included + +option field: + type: text + name: v mana replacement + description: The replacement mana symbol icon for Mainframe Mana + +option field: + type: choice + name: export description + choice: no + choice: yes + description: Export set description as splash page + +option field: + type: choice + name: unpreviewed card image + choice: card back + choice: empty + description: What should display on the preview gallery for unpreviewed cards + +option field: + type: choice + name: transparent corners + choice: no + choice: yes + initial: yes + description: Should the card images have tranparent rounded corners + +script: + ## set name, workaround windows reserved filenames + set_code := replace(set.set_code, match:"^(CON|PRN|AUX|NUL|COM[0-9]|LPT[0-9])$", replace:{_1 + "_"}) + + ## clean up strays that will mess up the json + escape_backslash := replace@(match:"\\\\", replace:"\\\\\\\\") + escape_quotes := replace@(match:"\"", replace:"\\\\\"") + escape_breaks := replace@(match:"\n", replace:"\\\\n") + apos_fix := replace@(match:"’", replace:"'") + remove_tabs := + replace@(match:"\t", replace:"") + + replace@(match:" ", replace:"") + + replace@(match:" +", replace:" ") + remove_controls := replace@(match:"\r", replace:"") + remove_quotes := replace@(match:"\"", replace:"") + + sanitize := + to_text + + escape_backslash + + escape_breaks + + escape_quotes + + remove_controls + + remove_tabs + + apos_fix + + trim + + ## symbol processing + ## adding Fungustober's symbol processing functions to simplify things down the road + ## if we make all the symbols {1}{U} here, we won't have to use tokenize/symbolize in the python scripts + ## all the mana types we need this regex to detect: (css is case-insensitive, so we don't need to worry about making things upper/lowercase) + #w + #w/p -> every mana type with a slash needs to not have that by the end + #u, u/p, b, b/p, r, r/p, g, g/p + #w/u, w/b, u/b, u/r, b/r, b/g, r/w, r/g, g/w, g/u + #2/w-g, c/w-g + #p + #tap-alt (?) + #s + #q + #half + #100 + #1000000 + #loyalty-up (?) + #loyalty-down (?) + #loyalty-zero (?) + #loyalty-start (?) + #loyalty (?) + #0-20 + #x, y, z + #c, e + #chaos + #½ + #∞ + v_replacement := { + if input != "V" or options.v_mana_replacement == "" then input + else options.v_mana_replacement + } + mana_cost_replacement := + replace@(match:"([+=-])([0-9X])", replace:{ if _2 == "0" or _2 == "=" then "["+_2+"]" else "["+_1+_2+"]"}) + + replace@(match:"([0-9HWUBRGSCV])/([WUBRGCSV])(/([WUBRGCSV]))?", replace:{"\{"+_1+"/"+_2+_3+"\}"}) + + replace@(match:"([½∞XYZWUBRGCSTQVJFENAH])", in_context:"(?", replace:{"\{"+_1+"\}"}) + + replace@(match:"([1-9]?[0-9]+)", in_context:"(?", replace:{"\{"+_1+"\}"}) + + replace@(match:"V", replace:{v_replacement("V")}) + + replace@(match:"/", replace:"") + + replace@(match:"\{H([^}]*)}", replace:{"\{"+_1+"P\}"}) + + inline_replacement := replace@(match:"([^<]+)", replace:{mana_cost_replacement(_2)}) + + convert_tags := replace@(match:"<(/?[ib])(-auto|-flavor)?>", replace:{"[" + _1 + "]"}) + + format_text := inline_replacement + convert_tags + sanitize + + ## should the card image be rotated, for example if it's a battle + is_rotated := { input == 523 or input == 902 or input == 1039 or input == 1046 } + + ## are there multiple faces? + has_secondary_face := match@(match:"adventure|aftermath|split|flip") + has_tertiary_face := match@(match:"adventure") + { card.name_3 != "" } + + ## load corner masks for the most common card dimensions, so we dont re-load them for every card + corner_masks := [ + "523" : invert_image("/magic-modules.mse-include/corners/375x523 rounded and antialiased.png"), + "902" : invert_image("/magic-modules.mse-include/corners/646x902 rounded and antialiased.png"), + "1039" : invert_image("/magic-modules.mse-include/corners/744x1039 rounded and antialiased.png"), + "1046" : invert_image("/magic-modules.mse-include/corners/750x1046 rounded and antialiased.png") + ] + + ## card and face values + write_card_full_name := { + write_face_name(1, suffix:"") + + if card_is_double then " // " + write_face_name(2, suffix:"_2") + else ( + (if front_has_secondary_face then " // " + write_face_name(2, suffix:"_2")) + + (if front_has_tertiary_face then " // " + write_face_name(3, suffix:"_3")) + + (if back != nil then ( + " // " + write_face_name(1, suffix:"", card:back) + + (if back_has_secondary_face then " // " + write_face_name(2, suffix:"_2", card:back)) + + (if back_has_tertiary_face then " // " + write_face_name(3, suffix:"_3", card:back)) + )) + ) + } + + write_card_color_identity := { color_identity_statistic() } + + write_card_id := { + sanitize(corrected_card_number()) + } + + write_card_rarity := { + if options.draft_structure == "cube" then "cube" + else if card.rarity == "mythic rare" then "mythic" + else if card.rarity == "basic land" then "common" + else card.rarity + } + + write_card_notes := { + ",\"" + sanitize(card.notes) + "\",\"" + + (if back != nil then sanitize(back.notes)) + + "\"" + } + + write_card_flavor_texts := { + ",\"" + format_text(card.flavor_text) + "\",\"" + + (if card_is_double then format_text(card.flavor_text_2) + else if back != nil then format_text(back.flavor_text) + else "") + + "\"" + } + + write_card_artists := { + ",\"" + sanitize(card.illustrator) + "\",\"" + + (if card_is_double then sanitize(card.illustrator_2) + else if back != nil then sanitize(back.illustrator) + else "") + + "\"" + } + + write_face_colors := { face_color_statistic(face: input) } + + write_face_name := { + command := "!export(er)?name" + input + " " + result := replace(filter_text(match:command + "[^\n\<]+"), match:command, replace:"") + if result == "" then result := card["alias" + suffix] + if result == "" then result := card["name" + suffix] + sanitize(remove_quotes(result)) + } + + write_face_alias := { + if card["alias" + suffix] != "" then sanitize(remove_quotes(card["name" + suffix])) else "" + } + + write_face_mana_cost := { + mana_cost_replacement(card["casting_cost" + suffix]) + } + + write_face_mana_value := { + mana_value_statistic() + } + + write_face_type := { + sanitize(card["type" + suffix]) + } + + write_face_power := { + sanitize(card["power" + suffix]) + } + + write_face_toughness := { + sanitize(card["toughness" + suffix]) + } + + write_face_loyalty := { + if not lang_setting("is_battle")(card["super_type" + suffix]) then sanitize(card["loyalty" + suffix]) else "" + } + + write_face_defense := { + if lang_setting("is_battle")(card["super_type" + suffix]) then sanitize(card["loyalty" + suffix]) else "" + } + + write_face_rules_text := { + format_text(if card["special_text" + suffix] or else "" != "" then card["special_text" + suffix] else card["rule_text" + suffix]) + } + + write_card_face := { + suffix := if input <= 1 then "" else "_" + input + ",\{" + + "\"" + "name" + "\": \"" + write_face_name() + "\"," + + "\"" + "alias" + "\": \"" + write_face_alias() + "\"," + + "\"" + "mana_cost" + "\": \"" + write_face_mana_cost() + "\"," + + "\"" + "mana_value" + "\": \"" + write_face_mana_value() + "\"," + + "\"" + "type" + "\": \"" + write_face_type() + "\"," + + "\"" + "rules_text" + "\": \"" + write_face_rules_text() + "\"," + + "\"" + "power" + "\": \"" + write_face_power() + "\"," + + "\"" + "toughness" + "\": \"" + write_face_toughness() + "\"," + + "\"" + "loyalty" + "\": \"" + write_face_loyalty() + "\"," + + "\"" + "defense" + "\": \"" + write_face_defense() + "\"," + + "\"" + "colors" + "\": \"" + write_face_colors() + "\"" + + "\}" + } + + write_card_faces := { + write_card_face(1) + + if card_is_double then write_card_face(2) + else ( + (if front_has_secondary_face then write_card_face(2)) + + (if front_has_tertiary_face then write_card_face(3)) + + (if back != nil then ( + write_card_face(1, card:back) + + (if back_has_secondary_face then write_card_face(2, card:back)) + + (if back_has_tertiary_face then write_card_face(3, card:back)) + )) + ) + } + + write_card_version := { + ",\{" + + "\"" + "set_id" + "\": \"" + set_code + "\"," + + "\"" + "card_id" + "\": \"" + write_card_id() + "\"," + + "\"" + "rarity" + "\": \"" + write_card_rarity() + "\"," + + "\"" + "flavor_texts" + "\": [" + substring(write_card_flavor_texts(), begin:1) + "]," + + "\"" + "artists" + "\": [" + substring(write_card_artists(), begin:1) + "]," + + "\"" + "images" + "\": [" + substring(write_card_image_paths(), begin:1) + "]," + + "\"" + "rotateds" + "\": [" + substring(write_card_rotateds(), begin:1) + "]" + + "\}" + } + + write_card_json := { + ",\{" + + "\"" + "full_name" + "\": \"" + write_card_full_name() + "\"," + + "\"" + "color_identity" + "\": \"" + write_card_color_identity() + "\"," + + "\"" + "notes" + "\": [" + substring(write_card_notes(), begin:1) + "]," + + "\"" + "faces" + "\": [" + substring(write_card_faces(), begin:1) + "]," + + "\"" + "versions" + "\": [" + substring(write_card_version(), begin:1) + "]" + + "\}" + } + + ## card images + write_card_image_paths := { + ",\"" + front_image_path + "\"" + + ",\"" + back_image_path + "\"" + } + + write_card_rotateds := { + ",\"" + front_rotated + "\"" + + ",\"" + back_rotated + "\"" + } + + write_face_image := { + ## rotate if necessary + if rotated then ( + input := rotate_image(input, angle: 90) + temp := width + width := height + height := temp + ) + + ## add transparent corners + if options.transparent_corners == "yes" then ( + corner_mask := corner_masks[width] or else corner_masks["1046"] + input := set_mask(image: input, mask: corner_mask) + ) + + ## write + write_image_file(input) + } + + write_card_images := { + ## gather info + card_image := to_card_image(card) + card_dimensions := dimensions_of(card_image) + card_width := card_dimensions.0 + card_height := card_dimensions.1 + + front_rotated := false + back_rotated := false + front_image_path := "" + back_image_path := "" + + ## double faced template + if card_is_double then ( + if card_width == 1504 then ( + front_width := 750 + front_height := 1046 + back_width := 750 + back_height := 1046 + back_offset := 754 + ) + else if card_width == 1489 then ( + front_width := 744 + front_height := 1039 + back_width := 744 + back_height := 1039 + back_offset := 745 + ) + else ( + front_width := 375 + front_height := 523 + back_width := 375 + back_height := 523 + back_offset := 377 + ) + front_image := crop(card_image, width: front_width, height: front_height, offset_x: 0, offset_y: 0) + back_image := crop(card_image, width: back_width, height: back_height, offset_x: back_offset, offset_y: 0) + front_image_path := "img/" + card_position + "_front." + options.image_type + back_image_path := "img/" + card_position + "_back." + options.image_type + + write_face_image(front_image, width: front_width, height: front_height, rotated: front_rotated, file: front_image_path) + write_face_image(back_image, width: back_width, height: back_height, rotated: back_rotated, file: back_image_path) + ) + ## single faced template, but linked to a back face + else if back != nil then ( + front_rotated := is_rotated(card_width) + back_image := to_card_image(back) + back_dimensions := dimensions_of(back_image) + back_width := back_dimensions.0 + back_height := back_dimensions.1 + back_rotated := is_rotated(back_width) + front_image_path := "img/" + card_position + "_front." + options.image_type + back_image_path := "img/" + card_position + "_back." + options.image_type + + write_face_image(card_image, width: card_width, height: card_height, rotated: front_rotated, file: front_image_path) + write_face_image(back_image, width: back_width, height: back_height, rotated: back_rotated, file: back_image_path) + ) + ## single faced template, unlinked + else ( + front_rotated := is_rotated(card_width) + front_image_path := "img/" + card_position + "." + options.image_type + + write_face_image(card_image, width: card_width, height: card_height, rotated: front_rotated, file: front_image_path) + ) + + ## return these so we dont need to recompute them + [front_rotated, front_image_path, back_rotated, back_image_path] + } + + ## start of actual work + ## iterate on the cards, write their image to disk, store their text + card_jsons := for each card in cards do ( + ## is this card a back face? if so, we don't need to handle it + ## it will be handled when we get to its front face + front_face := get_front_face(card) + if front_face != nil then "" else ( + + ## gather info + card_full_name := "" + card_position := position(of:card, in:set) + card_is_double := contains(card.shape, match:"double") + card_shape := if card.shape == "emblem" or card.shape == "counter" or card.shape == "rulestip" or card.shape == "checklist" or card.shape == "designation" then "token" else card.shape + + front_has_secondary_face := has_secondary_face(card_shape) + front_has_tertiary_face := has_tertiary_face(card_shape) + + back := get_back_face(card) + back_has_secondary_face := if back != nil then has_secondary_face(back.shape, card:back) else false + back_has_tertiary_face := if back != nil then has_tertiary_face(back.shape, card:back) else false + + result := write_card_images() + front_rotated := result.0 + front_image_path := result.1 + back_rotated := result.2 + back_image_path := result.3 + + write_card_json()) + ) + + ## write final json file + main_string := + "\{" + + "\"" + "name" + "\": \"" + set.title + "\"," + + "\"" + "formats" + "\": \"" + options.formats + "\"," + + "\"" + "image_type" + "\": \"" + options.image_type + "\"," + + "\"" + "draft_structure" + "\": \"" + options.draft_structure + "\"," + + "\"" + "unpreviewed" + "\": \"" + options.unpreviewed_card_image + "\"," + + "\"" + "image_name" + "\": \"" + "position" + "\"," + + "\"" + "v_mana" + "\": \"" + options.v_mana_replacement + "\"," + + "\"" + "cards" + "\": [" + substring(card_jsons, begin:1) + "]" + + "}" + write_text_file(file: set_code + ".json", main_string) + + ## write symbol and logo image files + write_image_file({symbol_variation(symbol: set.symbol, variation: options.symbol_rarity)}(), file: "icon.png", width: 512, height: 512) + write_image_file({symbol_variation(symbol: set.symbol, variation: options.symbol_rarity)}(), file: "logo.png", width: 320, height: 320) + + ## write set description file + if options.export_description == "yes" then write_text_file(file: "splash.md", set.description) + + "This file doesn't contain anything. Exported files can be found in the name-files folder with the same name you saved as." diff --git a/data/magic-egg-allinone-exporter.mse-export-template/icon.png b/data/magic-egg-allinone-exporter.mse-export-template/icon.png new file mode 100644 index 0000000000..ade24439ba Binary files /dev/null and b/data/magic-egg-allinone-exporter.mse-export-template/icon.png differ diff --git a/data/magic.mse-game/statistics_ch-s b/data/magic.mse-game/statistics_ch-s index b464ee9389..3dca91e931 100644 --- a/data/magic.mse-game/statistics_ch-s +++ b/data/magic.mse-game/statistics_ch-s @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: 地 group: 无色 group: 神器 @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​生物 : rgb(15,80,166) ​​永久物 : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​基本 # group: 雪境 # group: ​​​普世 @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​地 : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​生物 : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​克撒的 : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: 基本地 group: 普通 group: 非普通 @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "已过滤" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: 地 group: 无色 group: 神器 diff --git a/data/magic.mse-game/statistics_ch-t b/data/magic.mse-game/statistics_ch-t index 5af18db6f8..228a0407bb 100644 --- a/data/magic.mse-game/statistics_ch-t +++ b/data/magic.mse-game/statistics_ch-t @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: 地 group: 無色 group: 神器 @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​生物 : rgb(15,80,166) ​​永久物 : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​基本 # group: 雪境 # group: ​​​普世 @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​地 : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​生物 : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​克撒的 : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: 基本地 group: 普通 group: 非普通 @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "已過濾" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: 地 group: 無色 group: 神器 diff --git a/data/magic.mse-game/statistics_da b/data/magic.mse-game/statistics_da index d905b18553..624af37d3a 100644 --- a/data/magic.mse-game/statistics_da +++ b/data/magic.mse-game/statistics_da @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Land group: Colorless group: Artifact @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent / nonpermanent @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Creature : rgb(15,80,166) ​​Permanent : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Basic # group: Snow # group: ​​​World @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Land : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Creature : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Cave : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Basic Land group: Common group: Uncommon @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Land group: Colorless group: Artifact diff --git a/data/magic.mse-game/statistics_de b/data/magic.mse-game/statistics_de index eb47ee83ec..5664106fb2 100644 --- a/data/magic.mse-game/statistics_de +++ b/data/magic.mse-game/statistics_de @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Land group: Farblos group: Artefakt @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Kreatur : rgb(15,80,166) ​​Permanente : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Standard # group: Verschneite # group: ​​​Welten @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Land : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Kreatur : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Bergwerk : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Standardland group: Häufig group: Nicht so Häufig @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Gefiltert" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Land group: Farblos group: Artefakt diff --git a/data/magic.mse-game/statistics_en b/data/magic.mse-game/statistics_en index f4ca65c5a5..8baa5fd981 100644 --- a/data/magic.mse-game/statistics_en +++ b/data/magic.mse-game/statistics_en @@ -1,5 +1,5 @@ -############################################################## Statistics dimensions 30-03-2023 +############################################################## Statistics dimensions 2026-04-30 ############################################################## Blame GenevensiS for this ## Enable showing of non-printing characters to edit this file @@ -8,10 +8,10 @@ statistics dimension: name: color category position hint: 0000 icon: stats/color.png - description: How many cards of each frame color are in the set. Only looking at the front face colors. + description: How many cards of each frame color are in the set. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Land group: Colorless group: Artifact @@ -26,7 +26,7 @@ statistics dimension: White : rgb(255,231,185) Blue : rgb(15,80,166) Black : rgb(33,33,33) - Red : rgb(156,15,15) + Red : rgb(156,15,15) Green : rgb(68,144,15) Colorless : rgb(101,104,94) Artifact : rgb(109,132,158) @@ -38,9 +38,9 @@ statistics dimension: name: exact color position hint: 0010 icon: stats/color.png - description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. + description: The color as defined by the comprehensive rules. Never takes into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -79,9 +79,9 @@ statistics dimension: name: color identity position hint: 0020 icon: stats/color.png - description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. + description: The commander color identity as defined by the comprehensive rules. Always takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,16 +123,16 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value position hint: 0110 icon: stats/mana_value.png - description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. + description: The mana value. Never takes into account the back side or secondary face, except for split cards and aftermath cards, for which it counts the sum of both faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent / nonpermanent @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Creature : rgb(15,80,166) ​​Permanent : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Basic # group: Snow # group: ​​​World @@ -182,10 +182,10 @@ statistics dimension: position hint: 0220 icon: stats/type.png dark icon: stats/type_dark.png - description: The card’s type, not including supertypes. + description: The card’s type, not including supertypes. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Land : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Creature : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,17 +224,17 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype position hint: 0260 icon: stats/noncreature_subtype.png dark icon: stats/noncreature_subtype_dark.png - description: Subtypes of all types except creature/tribal/kindred. + description: Subtypes of all types except creature/tribal/kindred. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Cave : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -477,20 +477,20 @@ statistics dimension: position hint: 0271 icon: stats/creature_subtype.png dark icon: stats/creature_subtype_dark.png - description: Subtypes of the creature/tribal/kindred type, that are races. + description: Subtypes of the creature/tribal/kindred type, that are races. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class position hint: 0272 icon: stats/creature_subtype.png dark icon: stats/creature_subtype_dark.png - description: Subtypes of the creature/tribal/kindred type, that are classes. + description: Subtypes of the creature/tribal/kindred type, that are classes. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -658,9 +658,9 @@ statistics dimension: position hint: 0400 icon: stats/rarity.png dark icon: stats/rarity_dark.png - description: The rarity of the card. Counts each side/face separately. + description: The rarity of the card. Assumed to be the same for all sides/faces. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Basic Land group: Common group: Uncommon @@ -684,10 +684,10 @@ statistics dimension: position hint: 0410 icon: stats/keywords.png dark icon: stats/keywords_dark.png - description: The keywords of the card. Counts all sides/faces. + description: The keywords of the card. Always counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -701,7 +701,6 @@ statistics dimension: Kept : rgb(15,80,166) Filtered : rgb(156,15,15) - statistics dimension: name: mana production (All) position hint: 0520 @@ -709,7 +708,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +734,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +760,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +786,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +814,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +848,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +870,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +898,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +932,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +954,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +982,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1016,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1040,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1050,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1060,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1070,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1080,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1090,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1100,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1109,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1119,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1128,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1138,7 @@ statistics dimension: description: If the set is a deck, how many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1168,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1190,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1211,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1252,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1335,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Land group: Colorless group: Artifact @@ -1356,7 +1355,7 @@ statistics dimension: White : rgb(255,231,185) Blue : rgb(15,80,166) Black : rgb(33,33,33) - Red : rgb(156,15,15) + Red : rgb(156,15,15) Green : rgb(68,144,15) Purple : rgb(150,100,160) Pink : rgb(255,175,200) diff --git a/data/magic.mse-game/statistics_es b/data/magic.mse-game/statistics_es index 89addd1d3e..d44cf4a776 100644 --- a/data/magic.mse-game/statistics_es +++ b/data/magic.mse-game/statistics_es @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Tierra group: Incoloro group: Artefacto @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Criatura : rgb(15,80,166) ​​Permanente : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Básica # group: Nevado # group: ​​​del Mundo @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Tierra : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Criatura : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Bosque : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Tierra Básica group: Común group: Poco Común @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Tierra group: Incoloro group: Artefacto diff --git a/data/magic.mse-game/statistics_fr b/data/magic.mse-game/statistics_fr index bbbdcc1d78..955aaf0475 100644 --- a/data/magic.mse-game/statistics_fr +++ b/data/magic.mse-game/statistics_fr @@ -11,7 +11,7 @@ statistics dimension: description: La catégorie de couleur. Ne prends en compte que la face avant de la carte. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Terrain group: Incolore group: Artefact @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: La couleur définie par les règles du jeu. Ne prends pas en compte la face arrière, ni les faces secondaires (comme sur les aventures), sauf pour les cartes doubles. show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: L'identité couleur définie par la variante Commander. Prends en compte toutes les faces de la carte. show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: Le coût de lancement. Prends en compte chaque face séparément, si l'option est séléctionnée dans l'onglet 'Infos du Set'. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: Valeur de Mana @@ -132,7 +132,7 @@ statistics dimension: description: La valeur de mana convertie. Prends en compte chaque face séparément, si l'option est séléctionnée dans l'onglet 'Infos du Set', sauf pour les cartes doubles ou la somme des deux faces est comptée. numeric: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: Permanent / Nonpermanent @@ -142,7 +142,7 @@ statistics dimension: description: Compte le nombre de créatures, de permanents non-créatures, et de non-permanants. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Créature : rgb(15,80,166) ​​Permanent : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: Le sur-type de la carte. N'inclut pas le type. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​de Base # group: Neigeux # group: ​​​du Monde @@ -185,7 +185,7 @@ statistics dimension: description: Le type de la carte. N'inclut pas le sur-type. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Terrain : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Créature : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: Le sur-type et le type de la carte concaténés. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: Sous-Type Combiné @@ -224,7 +224,7 @@ statistics dimension: description: Les sous-types de la carte concaténés. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: Sous-Type De Noncréature @@ -234,7 +234,7 @@ statistics dimension: description: Les sous-types de tous les types sauf Créature, Tribal et Clan. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​caverne : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Les sous-types de Créature, Tribal et Clan qui sont des races. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: Classe de Créature @@ -490,7 +490,7 @@ statistics dimension: description: Les sous-types de Créature, Tribal et Clan qui sont des classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: Force @@ -500,7 +500,7 @@ statistics dimension: description: La force de la carte. Compte chaque face séparément. Ne compte pas les niveaux sur les monteurs de niveau. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: L'endurance de la carte. Compte chaque face séparément. Ne compte pas les niveaux sur les monteurs de niveau. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: La loyauté de la carte de Planeswalker. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: La défense de la carte de Bataille. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: La rareté de la carte. Compte chaque face séparément. show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Terrain de Base group: Commune group: Inhabituelle @@ -687,7 +687,7 @@ statistics dimension: description: Les mots-clef présents sur la carte. Compte toutes les faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: Filtre (voir info du set) @@ -709,7 +709,7 @@ statistics dimension: description: Compte combien de cartes peuvent produire du mana blanc, combien peuvent en produire du bleu, du noir, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Compte combien de terrains peuvent produire du mana blanc, combien peuvent en produire du bleu, du noir, etc... Si au moins une face est un terrain, la carte est comptée ici. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Compte combien de non-terrains peuvent produire du mana blanc, combien peuvent en produire du bleu, du noir, etc... Si au moins une face est un terrain, la carte n'est pas comptée ici. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Compte le nombre de coûts de lancement qui contiennent un unique symbol de mana coloré, puis combien en contiennent deux, trois, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Compte le nombre de coûts de lancement qui contiennent un unique symbol de mana blanc, puis combien en contiennent deux, trois, etc, de même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Compte le nombre total de symbols de mana blanc dans les coûts de lancement. De même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Compte le nombre de coûts de capacités qui contiennent un unique symbol de mana coloré, puis combien en contiennent deux, trois, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Compte le nombre de coûts de capacités qui contiennent un unique symbol de mana blanc, puis combien en contiennent deux, trois, etc, de même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Compte le nombre total de symbols de mana blanc dans les coûts de capacités. De même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Compte le nombre de coûts qui contiennent un unique symbol de mana coloré, puis combien en contiennent deux, trois, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Compte le nombre de coûts qui contiennent un unique symbol de mana blanc, puis combien en contiennent deux, trois, etc, de même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Compte le nombre total de symbols de mana blanc dans les coûts. De même pour les autres couleurs. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: Nombre De Lignes @@ -1051,7 +1051,7 @@ statistics dimension: # description: Combien de lignes y'a-t-il dans tous les textes de règles de la carte. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: Nombre De Paragraphes @@ -1061,7 +1061,7 @@ statistics dimension: description: Combien de paragraphes y'a-t-il dans tous les textes de règles de la carte. numeric: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: Mots Des Notes @@ -1071,7 +1071,7 @@ statistics dimension: description: Quels mots y'a-t-il dans les notes de la carte. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: Clauses Des Notes @@ -1081,7 +1081,7 @@ statistics dimension: description: Découpe les notes de la carte suivant l'expression régulière définie dans l'onglet 'Infos du Set'. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: Empreinte @@ -1091,7 +1091,7 @@ statistics dimension: description: L'empreinte de la carte. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: Hologramme @@ -1101,7 +1101,7 @@ statistics dimension: description: L'hologramme de sécurité de la carte. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: Symbole @@ -1110,7 +1110,7 @@ statistics dimension: description: Le symbol de la carte (pierre tombale, Alchemy). Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: Illustrateur @@ -1120,7 +1120,7 @@ statistics dimension: description: L'artiste de l'illustration de la carte. Compte chaque face séparément. split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: Cadre @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: Le style utilisé par la carte. show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: Main Moyenne @@ -1139,7 +1139,7 @@ statistics dimension: description: Si le Set est un Deck, combien de chaque type de carte comportera une main de départ en moyenne. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: Combien de cartes ont exactement une couleur, combien en ont deux, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: Combien de cartes ont exactement une couleur dans leur identité couleur, combien en ont deux, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Couleur de la face arrière ou secondaire (comme par exemple sur les aventures). show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Couleur combinée de toutes les faces. show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: La catégorie de couleur. Prends en compte les couleurs de l'Omnivers (Violet, Rose, Jaune, Orange et Brun) split list: true show empty: false - script: if filter_from_statistic() == "Filtré" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Terrain group: Incolore group: Artefact diff --git a/data/magic.mse-game/statistics_it b/data/magic.mse-game/statistics_it index 77d3ff55f9..1c7b155027 100644 --- a/data/magic.mse-game/statistics_it +++ b/data/magic.mse-game/statistics_it @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Terra group: Incolore group: Artefatto @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Creatura : rgb(15,80,166) ​​Permanente : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Base # group: Neve # group: ​​​del Mondo @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Terra : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Creatura : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Cancello : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Terra Base group: Comune group: Non Comune @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtrato" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Terra group: Incolore group: Artefatto diff --git a/data/magic.mse-game/statistics_jp b/data/magic.mse-game/statistics_jp index 7d640dd0de..8b468db342 100644 --- a/data/magic.mse-game/statistics_jp +++ b/data/magic.mse-game/statistics_jp @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: 土地 group: 無色 group: アーティファクト @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​クリーチャー : rgb(15,80,166) ​​パーマネント : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​基本 # group: 氷雪 # group: ​​​ワールド @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​土地 : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​クリーチャー : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​ウルザの : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: 基本土地 group: コモン group: アンコモン @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "フィルタリング済み" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: 土地 group: 無色 group: アーティファクト diff --git a/data/magic.mse-game/statistics_ko b/data/magic.mse-game/statistics_ko index 00d105bd34..946354ec25 100644 --- a/data/magic.mse-game/statistics_ko +++ b/data/magic.mse-game/statistics_ko @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: 대지 group: 무색 group: 마법물체 @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​생물 : rgb(15,80,166) ​​지속물 : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​기본 # group: 눈 # group: ​​​만능인 @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​대지 : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​생물 : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​관문 : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: 기본 대지 group: 공통 group: 언커먼 @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "거르는" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: 대지 group: 무색 group: 마법물체 diff --git a/data/magic.mse-game/statistics_pl b/data/magic.mse-game/statistics_pl index d905b18553..624af37d3a 100644 --- a/data/magic.mse-game/statistics_pl +++ b/data/magic.mse-game/statistics_pl @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Land group: Colorless group: Artifact @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent / nonpermanent @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Creature : rgb(15,80,166) ​​Permanent : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Basic # group: Snow # group: ​​​World @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Land : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Creature : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Cave : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Basic Land group: Common group: Uncommon @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtered" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Land group: Colorless group: Artifact diff --git a/data/magic.mse-game/statistics_pt-br b/data/magic.mse-game/statistics_pt-br index 1fa4f895aa..7d040106f8 100644 --- a/data/magic.mse-game/statistics_pt-br +++ b/data/magic.mse-game/statistics_pt-br @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Terreno group: Incolor group: Artefato @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Criatura : rgb(15,80,166) ​​Permanente : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Básico # group: da Neve # group: ​​​do mundo @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Terreno : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Criatura : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Caverna : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Terreno Básico group: Comum group: Incomum @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Filtrado" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Terreno group: Incolor group: Artefato diff --git a/data/magic.mse-game/statistics_ru b/data/magic.mse-game/statistics_ru index 5b47ff6999..e39f84e863 100644 --- a/data/magic.mse-game/statistics_ru +++ b/data/magic.mse-game/statistics_ru @@ -11,7 +11,7 @@ statistics dimension: description: How many cards of each frame color are in the set. Only looking at the front face colors. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else color_category_statistic() + script: if exclude_from_statistic() then "" else color_category_statistic() group: Земля group: Бесцветный group: Артефакт @@ -40,7 +40,7 @@ statistics dimension: icon: stats/color.png description: The color as defined by the comprehensive rules. Does not take into account the back side or secondary face (like on adventures for example), except for split cards and aftermath cards. show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else prefixed_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -81,7 +81,7 @@ statistics dimension: icon: stats/color.png description: The commander color identity as defined by the comprehensive rules. Takes into account all sides and faces of the card. show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else prefixed_color_identity_statistic() + script: if exclude_from_statistic() then "" else prefixed_color_identity_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -123,7 +123,7 @@ statistics dimension: description: The casting cost. Counts each side/face separately if the option is checked in the Set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else casting_cost_statistic() + script: if exclude_from_statistic() then "" else casting_cost_statistic() statistics dimension: name: mana value @@ -132,7 +132,7 @@ statistics dimension: description: The mana value. Counts each side/face separately if the option is checked in the Set info tab, except for split cards and aftermath cards, for which it counts the sum of all faces. numeric: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else mana_value_statistic() + script: if exclude_from_statistic() then "" else mana_value_statistic() statistics dimension: name: permanent/non @@ -142,7 +142,7 @@ statistics dimension: description: Counts the number of creatures, noncreature permanents, and nonpermanents. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else permanent_statistic() + script: if exclude_from_statistic() then "" else permanent_statistic() colors: ​Существо : rgb(15,80,166) ​​Перманент : rgb(18,105,166) @@ -158,7 +158,7 @@ statistics dimension: description: The card’s supertype, not including types. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else supertype_statistic() + script: if exclude_from_statistic() then "" else supertype_statistic() # group: ​Базовая # group: Снежный # group: ​​​Мировой @@ -185,7 +185,7 @@ statistics dimension: description: The card’s type, not including supertypes. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else type_extended_statistic() + script: if exclude_from_statistic() then "" else type_extended_statistic() colors: ​Земля : rgb(103,64,35) # There is a zero width space before the "Land" so that it always appears after custom types. ​​Существо : rgb(15,80,166) # There are two zero width spaces before the "Creature" so that it always appears after lands. @@ -214,7 +214,7 @@ statistics dimension: description: The card’s supertypes and types concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else combined_type_statistic() + script: if exclude_from_statistic() then "" else combined_type_statistic() statistics dimension: name: combined subtype @@ -224,7 +224,7 @@ statistics dimension: description: The card’s subtypes concatenated. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else combined_subtype_statistic() + script: if exclude_from_statistic() then "" else combined_subtype_statistic() statistics dimension: name: noncreature subtype @@ -234,7 +234,7 @@ statistics dimension: description: Subtypes of all types except creature/tribal/kindred. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else noncreature_subtype_statistic() + script: if exclude_from_statistic() then "" else noncreature_subtype_statistic() colors: #Land ​Башня : rgb(103,64,35) # There is a zero width space before land types so that they always appear after custom types. @@ -480,7 +480,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are races. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else creature_race_statistic() + script: if exclude_from_statistic() then "" else creature_race_statistic() statistics dimension: name: creature class @@ -490,7 +490,7 @@ statistics dimension: description: Subtypes of the creature/tribal/kindred type, that are classes. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else creature_class_statistic() + script: if exclude_from_statistic() then "" else creature_class_statistic() statistics dimension: name: power @@ -500,7 +500,7 @@ statistics dimension: description: The power of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else power_statistic() + script: if exclude_from_statistic() then "" else power_statistic() group: 0 group: 1 group: 2 @@ -540,7 +540,7 @@ statistics dimension: description: The toughness of the card. Counts each side/face separately. Does not count levels on leveler cards. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else toughness_statistic() + script: if exclude_from_statistic() then "" else toughness_statistic() group: 0 group: 1 group: 2 @@ -580,7 +580,7 @@ statistics dimension: description: The loyalty of a planeswalker card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else loyalty_statistic() + script: if exclude_from_statistic() then "" else loyalty_statistic() group: 0 group: 1 group: 2 @@ -620,7 +620,7 @@ statistics dimension: description: The defense of a battle card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else defense_statistic() + script: if exclude_from_statistic() then "" else defense_statistic() group: 0 group: 1 group: 2 @@ -660,7 +660,7 @@ statistics dimension: dark icon: stats/rarity_dark.png description: The rarity of the card. Counts each side/face separately. show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else rarity_statistic() + script: if exclude_from_statistic() then "" else rarity_statistic() group: Базовая Земля group: Обычный group: Необычный @@ -687,7 +687,7 @@ statistics dimension: description: The keywords of the card. Counts all sides/faces. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else keyword_usage(unique: true) + script: if exclude_from_statistic() then "" else keyword_usage(unique: true) statistics dimension: name: filter (see set info) @@ -709,7 +709,7 @@ statistics dimension: description: Counts how many cards can produce white mana. Repeat for all other colors. Then counts how many cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "all") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "all") group: C group: W group: U @@ -735,7 +735,7 @@ statistics dimension: description: Counts how many lands can produce white mana. Repeat for all other colors. Then counts how many lands can produce mana of any color, and mana of a chosen color. If either side/face is a land, the card will be counted here. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "land") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "land") group: C group: W group: U @@ -761,7 +761,7 @@ statistics dimension: description: Counts how many non-land cards can produce white mana. Repeat for all other colors. Then counts how many non-land cards can produce mana of any color, and mana of a chosen color. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") + script: if exclude_from_statistic() then "" else mana_production_list_statistic(check_type: "nonland") group: C group: W group: U @@ -787,7 +787,7 @@ statistics dimension: description: Counts the number of casting costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else cc_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -815,7 +815,7 @@ statistics dimension: description: Counts how many cards have a single white pip in their casting cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else cc_colored_pips_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -849,7 +849,7 @@ statistics dimension: description: Counts the total number of white pips in all the casting costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else cc_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else cc_colored_pips_totals_statistic() group: C group: W group: U @@ -871,7 +871,7 @@ statistics dimension: description: Counts the number of activated/triggered/keyworded ability costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else ability_colored_pips_count_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_count_statistic() group: 0 group: 1 group: 2 @@ -899,7 +899,7 @@ statistics dimension: description: Counts how many activated/triggered/keyworded abilities have a single white pip in their cost. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each ability on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else ability_colored_pips_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -933,7 +933,7 @@ statistics dimension: description: Counts the total number of white pips in all the activated/triggered/keyworded ability costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else ability_colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else ability_colored_pips_totals_statistic() group: C group: W group: U @@ -955,7 +955,7 @@ statistics dimension: description: Counts the number of costs that contain one colored pip. Repeat for all other amounts. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else colored_pips_count_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_count_totals_statistic() group: 0 group: 1 group: 2 @@ -983,7 +983,7 @@ statistics dimension: description: Counts how many costs contain a single white pip. Repeat for two white pips. Then three, then four+, then for all other colors. Counts each cost on each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else colored_pips_statistic() + script: if exclude_from_statistic() then "" else colored_pips_statistic() colors: ​C : rgb(207,207,207) # There is a zero width space before the "C" so that they always appear first. ​CC : rgb(175,175,175) @@ -1017,7 +1017,7 @@ statistics dimension: description: Counts the total number of white pips in all the costs. Repeat for all other colors. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else colored_pips_totals_statistic() + script: if exclude_from_statistic() then "" else colored_pips_totals_statistic() group: C group: W group: U @@ -1041,7 +1041,7 @@ statistics dimension: numeric: true bin size: 5 show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else total_word_count_statistic() + script: if exclude_from_statistic() then "" else total_word_count_statistic() #statistics dimension: # name: line count @@ -1051,7 +1051,7 @@ statistics dimension: # description: How many lines are in the card’s various rule texts. # numeric: true # show empty: false -# script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. +# script: if exclude_from_statistic() then "" else total_line_count_statistic() # Not reliable atm. statistics dimension: name: paragraph count @@ -1061,7 +1061,7 @@ statistics dimension: description: How many paragraphs are in the card’s various rule texts. numeric: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else total_paragraph_count_statistic() + script: if exclude_from_statistic() then "" else total_paragraph_count_statistic() statistics dimension: name: card notes words @@ -1071,7 +1071,7 @@ statistics dimension: description: Counts all the words that appear in the card notes. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else split_notes_words_statistic(card.notes) + script: if exclude_from_statistic() then "" else card_notes_words_statistic() statistics dimension: name: card notes clauses @@ -1081,7 +1081,7 @@ statistics dimension: description: Cuts the card notes using the regex specified in the set info tab. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else split_notes_clauses_statistic() + script: if exclude_from_statistic() then "" else card_notes_clauses_statistic() statistics dimension: name: watermark @@ -1091,7 +1091,7 @@ statistics dimension: description: The watermark of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else watermark_statistic() + script: if exclude_from_statistic() then "" else watermark_statistic() statistics dimension: name: stamp @@ -1101,7 +1101,7 @@ statistics dimension: description: The security stamp of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else stamp_statistic() + script: if exclude_from_statistic() then "" else stamp_statistic() statistics dimension: name: symbol @@ -1110,7 +1110,7 @@ statistics dimension: description: The symbol of the card (Tombstone, Alchemy). Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else symbol_statistic() + script: if exclude_from_statistic() then "" else symbol_statistic() statistics dimension: name: illustrator @@ -1120,7 +1120,7 @@ statistics dimension: description: The artists of the card. Counts each side/face separately. split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else illustrator_statistic() + script: if exclude_from_statistic() then "" else illustrator_statistic() statistics dimension: name: template @@ -1129,7 +1129,7 @@ statistics dimension: dark icon: stats/stylesheet_dark.png description: The stylesheet used by the card. show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else stylesheet.short_name + script: if exclude_from_statistic() then "" else template_statistic() statistics dimension: name: average opening hand @@ -1139,7 +1139,7 @@ statistics dimension: description: How many cards of each type on average will be in an opening hand. split list: true show empty: false - script: if trim_from_draw_statistic() then "" else average_opening_hand_statistic() + script: if exclude_from_draw_statistic() then "" else average_opening_hand_statistic() global_script: average_opening_hand_global_statistic() statistics dimension: @@ -1169,7 +1169,7 @@ statistics dimension: description: How many cards have one color, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else color_count_statistic() + script: if exclude_from_statistic() then "" else color_count_statistic() group: 0 group: 1 group: 2 @@ -1191,7 +1191,7 @@ statistics dimension: description: How many cards have one color in their color identity, how many have two, three, etc... split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else color_identity_count_statistic() + script: if exclude_from_statistic() then "" else color_identity_count_statistic() group: 0 group: 1 group: 2 @@ -1212,7 +1212,7 @@ statistics dimension: icon: stats/color.png description: Color of the back side or secondary face (like on adventures for example). show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else prefixed_back_face_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_back_face_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1253,7 +1253,7 @@ statistics dimension: icon: stats/color.png description: Combined color of all the sides/faces. show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else prefixed_all_faces_color_statistic() + script: if exclude_from_statistic() then "" else prefixed_all_faces_color_statistic() colors: ​C : rgb(101,104,94) # There is a zero width space before the "C" so that it always appears first. ​​W : rgb(255,231,185) # There are two zero width spaces before the "W" so that it always appear after the "C". @@ -1336,7 +1336,7 @@ statistics dimension: description: The color category of the card, taking into account omniverse colors (Purple, Pink, Yellow, Orange and Brown). split list: true show empty: false - script: if filter_from_statistic() == "Отфильтровано" or trim_from_statistic() then "" else omniverse_color_statistic() + script: if exclude_from_statistic() then "" else omniverse_color_statistic() group: Земля group: Бесцветный group: Артефакт diff --git a/data/magic.mse-game/statistics_script b/data/magic.mse-game/statistics_script index 10061e2280..12fbdf641e 100644 --- a/data/magic.mse-game/statistics_script +++ b/data/magic.mse-game/statistics_script @@ -5,6 +5,8 @@ ## Enable showing of non-printing characters to edit this file ## Clean up text for processing +clean_commas_statistic := replace@(match: ",,+", replace: ",") + replace@(match: "^,", replace: "") + replace@(match: ",$", replace: "") +replace_full_width_commas_statistic := replace@(match:",", replace: ",") remove_flavor_statistic := replace@(match: ".*?", replace: "") remove_reminder_statistic := replace@(match: "(|).*?(|)", replace: "") remove_zero_width_spaces_statistic := replace@(match: "​", replace: "") @@ -57,9 +59,9 @@ space_prefix := # The casting cost casting_cost_statistic := { - cc_1 := trim(to_text(card.casting_cost)) - cc_2 := if check_2_statistic() then trim(to_text(card.casting_cost_2)) else "" - cc_1 + (if cc_1 != "" and cc_2 != "" then "," else "") + cc_2 + fields := fields_to_check_statistic("casting_cost") + result := for x from 0 to 5 do ("," + trim(to_text(fields[x]))) + clean_commas_statistic(result) } # The converted mana cost @@ -91,67 +93,76 @@ prefixed_color_identity_statistic := } color_statistic := { - colors := if contains(card.shape, match: "split") or contains(card.shape, match: "aftermath") then distil_colors_statistic(face_color_statistic(face: 1) + face_color_statistic(face: 2)) - else face_color_statistic(face: 1) # shape == "adventure", "prototype", "leveler", "saga", "class", "flip", "double faced", "meld" or "normal" + indicator_fields := indicators_to_check_statistic("indicator") + name_fields := fields_to_check_statistic("name") + cost_fields := fields_to_check_statistic("casting_cost") + text_fields := texts_to_check_statistic() + end := if contains(card.shape, match: "split") or contains(card.shape, match: "aftermath") then 1 else 0 + colors := for x from 0 to end do (face_color_statistic(indicator: indicator_fields[x], name: name_fields[x], cost: cost_fields[x], texts: text_fields[x])) + colors := distil_colors_statistic(colors) if colors == "" then "C" else colors } back_face_color_statistic := { - colors := if contains(card.shape, match: "split") or contains(card.shape, match: "aftermath") then "C" - else face_color_statistic(face: 2) # shape == "adventure", "prototype", "leveler", "saga", "class", "flip", "double faced", "meld" or "normal" - if colors == "" then "C" else colors + if contains(card.shape, match: "split") or contains(card.shape, match: "aftermath") then "C" else ( + indicator_fields := indicators_to_check_statistic("indicator") + name_fields := fields_to_check_statistic("name") + cost_fields := fields_to_check_statistic("casting_cost") + text_fields := texts_to_check_statistic() + colors := for x from 1 to 5 do (face_color_statistic(indicator: indicator_fields[x], name: name_fields[x], cost: cost_fields[x], texts: text_fields[x])) + colors := distil_colors_statistic(colors) + if colors == "" then "C" else colors) } all_faces_color_statistic := { - colors := distil_colors_statistic(face_color_statistic(face: 1) + face_color_statistic(face: 2) + face_color_statistic(face: 3)) + indicator_fields := indicators_to_check_statistic("indicator") + name_fields := fields_to_check_statistic("name") + cost_fields := fields_to_check_statistic("casting_cost") + text_fields := texts_to_check_statistic() + colors := for x from 0 to 5 do (face_color_statistic(indicator: indicator_fields[x], name: name_fields[x], cost: cost_fields[x], texts: text_fields[x])) + colors := distil_colors_statistic(colors) if colors == "" then "C" else colors } face_color_statistic := { - suffix := if face == 1 then "" else if face == 2 then "_2" else if face == 3 then "_3" else "" - identity := if face == 1 then has_identity() else if face == 2 then has_identity_2() else if face == 3 then false else false - - colors := "" - # Colors defined by a color indicator dot. I believe it takes precedence over everything. - if identity then colors := distil_color_words_statistic(card["indicator" + suffix]) + colors := distil_color_words_statistic(indicator) if colors != "" then colors else ( # Colors defined by english text on the card. Takes precedence over casting cost. - colors := cda_to_color_statistic(remove_reminder_statistic(card["rule_text" + suffix]), suffix: suffix) + - cda_to_color_statistic(remove_reminder_statistic(card["level_" + (1+4*(face-1)) + "_text"]), suffix: suffix) - if face <= 2 then colors := colors + cda_to_color_statistic(remove_reminder_statistic(card["chapter_text" + suffix]), suffix: suffix) + count := length(texts) - 1 + colors := for y from 0 to count do (cda_to_color_statistic(remove_reminder_statistic(texts[y]))) colors := distil_colors_statistic(colors) if colors != "" then colors else ( # Colors defined by casting cost symbols. - distil_colors_statistic(card["casting_cost" + suffix]))) + distil_colors_statistic(cost))) } # The commander color identities of the cards in the set. color_identity_statistic := { - texts := text_to_check_statistic() - front_count := length(texts) - 1 - texts := texts + text_to_check_2_statistic() - count := length(texts) - 1 - total_colors := for x from 0 to count do + texts := texts_to_check_statistic(all: true) + names := fields_to_check_statistic("name", all: true) + total_colors := for x from 0 to 5 do ( - # Colors defined by english text on the card. - cda_to_color_statistic(remove_reminder_statistic(card[texts[x]]), suffix: (if x <= front_count then "" else "_2")) + - - # Colors defined by rule text symbols. - keep_only_symbols_statistic(remove_reminder_statistic(card[texts[x]])) + count := length(texts[x]) - 1 + for y from 0 to count do + ( + # Colors defined by english text on the card. + cda_to_color_statistic(remove_reminder_statistic(texts[x][y]), name: names[x], ignore_devoid: true) + + + # Colors defined by rule text symbols. + keep_only_symbols_statistic(remove_reminder_statistic(texts[x][y])) + ) + ) + indicators := indicators_to_check_statistic("indicator", all: true) + casting_costs := fields_to_check_statistic("casting_cost", all: true) + total_colors := total_colors + for x from 0 to 5 do + ( + distil_color_words_statistic(indicators[x]) + + casting_costs[x] ) - total_colors := total_colors + - - # Colors defined by a color indicator dot. - (if has_identity() then distil_color_words_statistic(card.indicator) else "") + - (if has_identity_2() then distil_color_words_statistic(card.indicator_2) else "") + - - # Colors defined by casting cost symbols. - card.casting_cost + " " + - card.casting_cost_2 total_colors := distil_colors_statistic(total_colors) if total_colors == "" then "C" else total_colors @@ -163,10 +174,9 @@ cda_to_color_statistic := text := to_text(input) - if lang_setting("is_devoid")(input: text) then "C" else ( + if not ignore_devoid and lang_setting("is_devoid")(text) then "C" else ( - card_name := card["name" + suffix] - context := "(" + regex_escape(card_name) + "|" + regex_escape(legend_filter(card_name)) + ") ?(\\.|。)" + context := "(" + regex_escape(name) + "|" + regex_escape(legend_filter(name)) + ") ?(\\.|。)" if lang_setting("is_cda_colorless")(text, in_context: context) then "C" else ( if lang_setting("is_cda_all_colors")(text, in_context: context) then "WUBRG" else ( @@ -174,7 +184,8 @@ cda_to_color_statistic := cda_colors := lang_setting("cda_colors")(text, in_context: context) if cda_colors == "" then "" else ( distil_color_words_statistic(cda_colors)))))) -} +}@(ignore_devoid: false) + distil_color_words_statistic := { colors := "" @@ -213,25 +224,26 @@ color_identity_count_statistic := # Color Category color_category_statistic := { - result_1 := face_color_category_statistic(input: card.card_color) - result_2 := if check_2_statistic() then face_color_category_statistic(input: card.card_color_2) else "" - result_1 + (if result_1 != "" and result_2 != "" then "," else "") + result_2 + fields := fields_to_check_statistic("card_color") + result := for x from 0 to 5 do ("," + face_color_category_statistic(fields[x])) + clean_commas_statistic(result) } 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")) - land := chosen(choice:"land") - multi := chosen(choice:"multicolor") - hybrid := chosen(choice:"hybrid") - white := chosen(choice:"white") - blue := chosen(choice:"blue") - black := chosen(choice:"black") - red := chosen(choice:"red") - green := chosen(choice:"green") - multi_color := count_chosen(choices:"white, blue, black, red, green") + if input == "" then "" else ( + 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")) + land := chosen(choice:"land") + multi := chosen(choice:"multicolor") + hybrid := chosen(choice:"hybrid") + white := chosen(choice:"white") + blue := chosen(choice:"blue") + black := chosen(choice:"black") + red := chosen(choice:"red") + green := chosen(choice:"green") + count := count_chosen(choices:"white, blue, black, red, green") if land then all_en_space_statistic(lang_setting("land")) else if multi then all_en_space_statistic(lang_setting("multicolor")) - else if multi_color == 2 + else if count == 2 and chosen(choice:"artifact") then all_en_space_statistic(lang_setting("hybrid")) ##hybrid artifacts would show as their first color else if hybrid then all_en_space_statistic(lang_setting("hybrid")) else if artifact then all_en_space_statistic(lang_setting("artifact")) @@ -240,15 +252,15 @@ face_color_category_statistic := else if black then all_en_space_statistic(lang_setting("black")) else if red then all_en_space_statistic(lang_setting("red")) else if green then all_en_space_statistic(lang_setting("green")) - else all_en_space_statistic(lang_setting("colorless")) + else all_en_space_statistic(lang_setting("colorless"))) } # Omniverse colors omniverse_color_statistic := { - result_1 := face_omniverse_color_statistic(input: card.card_color) - result_2 := if check_2_statistic() then face_omniverse_color_statistic(input: card.card_color_2) else "" - result_1 + (if result_1 != "" and result_2 != "" then "," else "") + result_2 + fields := fields_to_check_statistic("card_color") + result := for x from 0 to 5 do ("," + face_omniverse_color_statistic(fields[x])) + clean_commas_statistic(result) } face_omniverse_color_statistic := { @@ -284,30 +296,24 @@ face_omniverse_color_statistic := # Count how many cards have one white devotion in the set. Repeat for two white devotion. Repeat for three, then four+, then again for other colors. cc_colored_pips_statistic := { - cc := card.casting_cost - cc2 := if check_2_statistic() then card.casting_cost_2 else "" - - result := symbol_aggregate_statistic(cc, symbol: "W") + - symbol_aggregate_statistic(cc, symbol: "U") + - symbol_aggregate_statistic(cc, symbol: "B") + - symbol_aggregate_statistic(cc, symbol: "R") + - symbol_aggregate_statistic(cc, symbol: "G") + - symbol_aggregate_statistic(cc, symbol: "C") + - symbol_aggregate_statistic(cc2, symbol: "W") + - symbol_aggregate_statistic(cc2, symbol: "U") + - symbol_aggregate_statistic(cc2, symbol: "B") + - symbol_aggregate_statistic(cc2, symbol: "R") + - symbol_aggregate_statistic(cc2, symbol: "G") + - symbol_aggregate_statistic(cc2, symbol: "C") - substring(result, begin: 1) + fields := fields_to_check_statistic("casting_cost") + result := for x from 0 to 5 do ( + symbol_aggregate_statistic(fields[x], symbol: "W") + + symbol_aggregate_statistic(fields[x], symbol: "U") + + symbol_aggregate_statistic(fields[x], symbol: "B") + + symbol_aggregate_statistic(fields[x], symbol: "R") + + symbol_aggregate_statistic(fields[x], symbol: "G") + + symbol_aggregate_statistic(fields[x], symbol: "C") + ) + clean_commas_statistic(result) } # Count the total devotion of all cards in the set. cc_colored_pips_totals_statistic := { - cc := card.casting_cost + (if check_2_statistic() then " " + card.casting_cost_2 else "") - - join(wubrgc_break_statistic(cc), sep:",") + fields := fields_to_check_statistic("casting_cost") + result := for x from 0 to 5 do ("," + join(wubrgc_break_statistic(fields[x]), sep:",")) + clean_commas_statistic(result) } # 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. @@ -325,7 +331,7 @@ ability_colored_pips_statistic := symbol_aggregate_statistic(costs[x], symbol: "G") + symbol_aggregate_statistic(costs[x], symbol: "C") ) - substring(result, begin: 1)) + clean_commas_statistic(result)) } # Count the total pips of all the abilities of all the cards in the set. @@ -334,11 +340,8 @@ ability_colored_pips_totals_statistic := costs := gather_ability_symbols_statistic() if costs == [] then "" else ( count := length(costs) - 1 - result := for x from 0 to count do - ( - "," + join(wubrgc_break_statistic(costs[x]), sep:",") - ) - substring(result, begin: 1)) + result := for x from 0 to count do ("," + join(wubrgc_break_statistic(costs[x]), sep:",")) + clean_commas_statistic(result)) } colored_pips_statistic := @@ -357,14 +360,16 @@ colored_pips_totals_statistic := gather_ability_symbols_statistic := { - texts := text_to_check_statistic() + if check_2_statistic() then text_to_check_2_statistic() else [] - count := length(texts) - 1 - for x from 0 to count do - ( - text := remove_reminder_statistic(card[texts[x]]) - keep_only_symbols_list_statistic(activated_cost_filter_statistic(text)) + - keep_only_symbols_list_statistic(triggered_cost_filter_statistic(text)) + - keep_only_symbols_list_statistic(keyword_cost_filter_statistic(text)) + texts := texts_to_check_statistic() + for x from 0 to 5 do ( + count := length(texts[x]) - 1 + for y from 0 to count do + ( + text := remove_reminder_statistic(texts[x][y]) + keep_only_symbols_list_statistic(activated_cost_filter_statistic(text)) + + keep_only_symbols_list_statistic(triggered_cost_filter_statistic(text)) + + keep_only_symbols_list_statistic(keyword_cost_filter_statistic(text)) + ) ) } @@ -395,19 +400,18 @@ symbol_aggregate_statistic := else "," + space_prefix[symbol] + (if len > 3 then substring(devotion, end:4) + "+" else devotion) } -symbol_count_list_statistic := -{ - result := for each sym in input do (if contains(sym, match: symbol) then ("," + symbol) else "") - if result == nil then "" else result -} +#symbol_count_list_statistic := +#{ +# result := for each sym in input do (if contains(sym, match: symbol) then ("," + symbol) else "") +# if result == nil then "" else result +#} # How many colored pips does each casting cost have. cc_colored_pips_count_statistic := { - check_1 := card.casting_cost != "" - check_2 := check_2_statistic() and card.casting_cost_2 != "" - (if check_1 then colored_pips_count_statistic(card.casting_cost) else "") + - (if check_2 then (if check_1 then "," else "") + colored_pips_count_statistic(card.casting_cost_2) else "") + fields := fields_to_check_statistic("casting_cost") + result := for x from 0 to 5 do (if fields[x] == "" then "" else colored_pips_count_statistic(fields[x])) + clean_commas_statistic(result) } # How many colored pips does each ability cost have. @@ -416,10 +420,8 @@ ability_colored_pips_count_statistic := costs := gather_ability_symbols_statistic() if costs == [] then "" else ( count := length(costs) - 1 - for x from 0 to count do - ( - colored_pips_count_statistic(costs[x]) + (if x < count then "," else "") - )) + result := for x from 0 to count do (colored_pips_count_statistic(costs[x])) + clean_commas_statistic(result)) } # How many colored pips does each cost have. @@ -427,33 +429,34 @@ colored_pips_count_totals_statistic := { cc_count := cc_colored_pips_count_statistic() ability_count := ability_colored_pips_count_statistic() - cc_count + if ability_count == nil then "" else "," + ability_count + cc_count + if ability_count == nil then "" else (if cc_count != "" then "," else "") + ability_count } colored_pips_count_statistic := { pips := length(color_pip_break_statistic(input)) - if pips >= 8 then "8+" else pips + if pips >= 8 then ",8+" else "," + pips } # Count how many cards can produce white mana in the set. Repeat for other colors. mana_production_list_statistic := { - land1 := lang_setting("is_land")(card.super_type) - land2 := lang_setting("is_land")(card.super_type_2) - result_1 := if check_type == "land" and not land1 then "" - else if check_type == "nonland" and land1 then "" - else face_mana_production_list_statistic(texts: text_to_check_statistic(card: card), card: card, sub: card.sub_type, name:card.name) - result_2 := if not check_2_statistic(card: card) then "" - else if check_type == "land" and not land2 then "" - else if check_type == "nonland" and land2 then "" - else face_mana_production_list_statistic(texts: text_to_check_2_statistic(card: card), card: card, sub: card.sub_type_2, name:card.name_2) - substring(result_1 + result_2, begin: 1) + name_fields := fields_to_check_statistic("name") + super_fields := fields_to_check_statistic("super_type") + sub_fields := fields_to_check_statistic("sub_type") + text_fields := texts_to_check_statistic() + result := for x from 0 to 5 do (face_mana_production_list_statistic(texts: text_fields[x], super: super_fields[x], sub: sub_fields[x], name: name_fields[x])) + clean_commas_statistic(result) } face_mana_production_list_statistic := { + land := lang_setting("is_land")(super) + if check_type == "land" and not land then "" + else if check_type == "nonland" and land then "" + else ( # the combined text fields - combined_text := for x from 0 to length(texts)-1 do (remove_reminder_statistic(card[texts[x]]) + "\n") + count := length(texts)-1 + combined_text := for y from 0 to count do (remove_reminder_statistic(texts[y]) + "\n") # the text-based mana we can produce # we don't care about specifics just if they're non-empty @@ -470,38 +473,44 @@ face_mana_production_list_statistic := (if lang_setting("is_forest")(sub) or contains_element(produced_symbols, element:"G") then ",G" else "") + (if lang_setting("is_wastes")(name) or contains_element(produced_symbols, element:"C") then ",C" else "") + (if can_Any then ","+all_en_space_statistic(lang_setting("mana_any")) else "") + - (if can_Chosen then ","+all_en_space_statistic(lang_setting("mana_chosen")) else "") + (if can_Chosen then ","+all_en_space_statistic(lang_setting("mana_chosen")) else "")) } # Word counting total_word_count_statistic := { - texts := text_to_check_statistic() + if check_2_statistic() then text_to_check_2_statistic() else [] - count := length(texts) - 1 - for x from 0 to count do - ( - text := trim(to_text(card[texts[x]])) - if text == "" or text == "​" then 0 else word_count(text) # There is a zero width space in the second "" + texts := texts_to_check_statistic() + for x from 0 to 5 do ( + count := length(texts[x]) - 1 + for y from 0 to count do + ( + text := trim(to_text(texts[x][y])) + if text == "" or text == "​" then 0 else word_count(text) # There is a zero width space in the second "" + ) ) } ## card_style only checks the active card when looping, making this not function currently #total_line_count_statistic := #{ -# texts := text_to_check_statistic() + if check_2_statistic() then text_to_check_2_statistic() else [] -# count := length(texts) - 1 -# for x from 0 to count do -# ( -# if card[texts[x]] != "" then card_style[texts[x]].content_lines else 0 +# texts := texts_to_check_statistic() +# for x from 0 to 5 do ( +# count := length(texts[x]) - 1 +# for y from 0 to count do +# ( +# if trim(to_text(texts[x][y])) != "" then card_style[texts[x]].content_lines else 0 +# ) # ) #} total_paragraph_count_statistic := { - texts := text_to_check_statistic() + if check_2_statistic() then text_to_check_2_statistic() else [] - count := length(texts) - 1 - for x from 0 to count do - ( - text := trim(card[texts[x]]) - if text == "" or text == "​" then 0 else 1 + line_count_statistic(text) - soft_line_count_statistic(text) # There is a zero width space in the second "" + texts := texts_to_check_statistic() + for x from 0 to 5 do ( + count := length(texts[x]) - 1 + for y from 0 to count do + ( + text := trim(texts[x][y]) + if text == "" or text == "​" then 0 else 1 + line_count_statistic(text) - soft_line_count_statistic(text) # There is a zero width space in the second "" + ) ) } line_count_statistic := break_text@(match: "\\n") + length @@ -510,40 +519,57 @@ soft_line_count_statistic := break_text@(match: "") + length # Artists illustrator_statistic := { - artist_1 := trim(replace_full_width_commas_statistic(card.illustrator)) - artist_2 := trim(replace_full_width_commas_statistic(card.illustrator_2)) - result := artist_1 + (if check_2_statistic() and artist_2 != "" and artist_2 != artist_1 then "," + artist_2 else "") - if result == "" then " " + all_en_space_statistic(lang_setting("no_artist")) else if result.0 == "," then substring(result, begin: 1) else result + fields := fields_to_check_statistic("illustrator") + result := for x from 0 to 5 do ("," + trim(replace_full_width_commas_statistic(fields[x]))) + result := clean_commas_statistic(result) + if result == "" then " " + all_en_space_statistic(lang_setting("no_artist")) else result } # Card notes +card_notes_words_statistic := +{ + result := split_notes_words_statistic(card.notes) + if check_back_statistic() and (back := get_back_face(card)) != nil then "," + split_notes_words_statistic(back.notes) else "" + clean_commas_statistic(result) +} split_notes_words_statistic := replace@(match: " *(,|\\.|;|(?=!)|\\n)? *", replace: ",") +card_notes_clauses_statistic := +{ + result := split_notes_clauses_statistic(card.notes) + if check_back_statistic() and (back := get_back_face(card)) != nil then "," + split_notes_clauses_statistic(back.notes) else "" + clean_commas_statistic(result) +} split_notes_clauses_statistic := { regex := if set.card_notes_clauses_split == "" then " *(\\.|\\n|;|,|(?=!)) *" else set.card_notes_clauses_split regex := replace_full_width_commas_statistic(regex) - notes := replace_full_width_commas_statistic(card.notes) - result := replace(notes, match: regex, replace: ",") - result := clean_commas_statistic(result) - result + notes := replace_full_width_commas_statistic(input) + replace(notes, match: regex, replace: ",") +} + +template_statistic := +{ + result := stylesheet.short_name + if check_back_statistic() and (back := get_back_face(card)) != nil then "," + (back.stylesheet.short_name or else set.stylesheet.short_name) else "" + clean_commas_statistic(result) } -clean_commas_statistic := replace@(match: ",,", replace: ",") + replace@(match: "^,", replace: "") + replace@(match: ",$", replace: "") -replace_full_width_commas_statistic := replace@(match:",", replace: ",") # Hypergeometric probability of hitting every single land drop. land_drop_hit_percentage_statistic := { if card != set.cards.0 then "" else ( - set_count := length(set.cards)-1 - cards := for x from 0 to set_count do (if trim_from_draw_statistic(card: set.cards[x]) then [] else [set.cards[x]]) - card_count := length(cards) - if card_count <= start then lang_setting("message_drops_no_cards") else ( - - land_count := for each c in cards do + card_count := 0 + land_count := 0 + for each card in set.cards do ( - if lang_setting("is_land")(c.super_type) or (check_2_statistic(card: c) and lang_setting("is_land")(c.super_type_2)) then 1 - else 0 + if not exclude_from_draw_statistic() then + ( + card_count := card_count + 1 + super_fields := fields_to_check_statistic("super_type") + counts_as_land := false + for x from 0 to 5 do (if is_land(super_fields[x]) then counts_as_land := true; "") + if counts_as_land then land_count := land_count + 1 + ) + "" ) + if card_count <= start then lang_setting("message_drops_no_cards") else ( if land_count == 0 then lang_setting("message_drops_no_lands") else ( max_turns := min(10, card_count-start) @@ -563,7 +589,7 @@ land_drop_hit_percentage_statistic := if count == 0 then count := 1 for x from 1 to count do ("," + probability_string_per_turn[t-1]) ) - substring(result, begin: 1)))) + clean_commas_statistic(result)))) } hypergeometric_sum_statistic := { @@ -582,19 +608,43 @@ n_choose_k_statistic := } # Average number of cards in an opening hand +average_opening_hand_counts_as_statistic := +{ + name_fields := fields_to_check_statistic("name") + super_fields := fields_to_check_statistic("super_type") + sub_fields := fields_to_check_statistic("sub_type") + text_fields := texts_to_check_statistic() + counts_as_land := false + counts_as_manaartifact := false + counts_as_nonmanaartifact := false + counts_as_enchantment := false + counts_as_planeswalker := false + counts_as_battle := false + counts_as_creature := false + counts_as_sorcery := false + counts_as_instant := false + for x from 0 to 5 do ( + name := name_fields[x] + super := super_fields[x] + sub := sub_fields[x] + texts := text_fields[x] + if is_land(super) then counts_as_land := true + if is_artifact(super) then (if face_mana_production_list_statistic(check_type: "nonland") == "" then (counts_as_nonmanaartifact := true) else (counts_as_manaartifact := true)) + if is_enchantment(super) then counts_as_enchantment := true + if is_planeswalker(super) then counts_as_planeswalker := true + if is_battle(super) then counts_as_battle := true + if is_creature(super) then counts_as_creature := true + if is_sorcery(super) then counts_as_sorcery := true + if is_instant(super) then counts_as_instant := true + ) + [counts_as_land, counts_as_manaartifact, counts_as_nonmanaartifact, counts_as_enchantment, counts_as_planeswalker, counts_as_battle, counts_as_creature, counts_as_sorcery, counts_as_instant] +} average_opening_hand_statistic := { if type_name(global_value) != "collection" then to_string(global_value) else ( - types := [has_type_statistic("land")] + - (if has_type_statistic("artifact") then (if mana_production_list_statistic(check_type: "nonland") == "" then [false, true] else [true, false]) else [false, false]) + - [has_type_statistic("enchantment")] + - [has_type_statistic("planeswalker")] + - [has_type_statistic("battle")] + - [has_type_statistic("creature")] + - [has_type_statistic("sorcery")] + - [has_type_statistic("instant")] - result := for x from 0 to 8 do (if types[x] then global_value[x] else "") - substring(result, begin: 1)) + counts_as := average_opening_hand_counts_as_statistic() + result := for x from 0 to 8 do (if counts_as[x] then global_value[x] else "") + clean_commas_statistic(result)) } average_opening_hand_global_statistic := { @@ -611,20 +661,21 @@ average_opening_hand_global_statistic := sorceries := 0 instants := 0 - for each c in set.cards do + for each card in set.cards do ( - if not trim_from_draw_statistic(card:c) then + if not exclude_from_draw_statistic() then ( - type := c.type + (if check_2_statistic(card:c) then " " + c.type_2 else "") + counts_as := average_opening_hand_counts_as_statistic() card_count := card_count + 1 - if is_land(type) then lands := lands + 1 - if is_artifact(type) then (if mana_production_list_statistic(card: c, check_type: "nonland") == "" then (nonmanaartifacts := nonmanaartifacts + 1) else (manaartifacts := manaartifacts + 1)) - if is_enchantment(type) then enchantments := enchantments + 1 - if is_planeswalker(type) then planeswalkers := planeswalkers + 1 - if is_battle(type) then battles := battles + 1 - if is_creature(type) then creatures := creatures + 1 - if is_sorcery(type) then sorceries := sorceries + 1 - if is_instant(type) then instants := instants + 1 + if counts_as[0] then lands := lands + 1 + if counts_as[1] then manaartifacts := manaartifacts + 1 + if counts_as[2] then nonmanaartifacts := nonmanaartifacts + 1 + if counts_as[3] then enchantments := enchantments + 1 + if counts_as[4] then planeswalkers := planeswalkers + 1 + if counts_as[5] then battles := battles + 1 + if counts_as[6] then creatures := creatures + 1 + if counts_as[7] then sorceries := sorceries + 1 + if counts_as[8] then instants := instants + 1 ) "" ) @@ -684,28 +735,29 @@ is_tokenish_statistics := # Watermarks watermark_statistic := { - watermark_1 := trim(to_text(card.watermark)) - watermark_2 := if check_2_statistic() then trim(to_text(card.watermark_2)) else "" - watermark_1 + (if watermark_1 != "" and watermark_2 != "" then "," else "") + watermark_2 + fields := fields_to_check_statistic("watermark") + result := for x from 0 to 5 do ("," + trim(to_text(fields[x]))) + clean_commas_statistic(result) } stamp_statistic := { - stamp_1 := trim(to_text(card.card_stamp)) - stamp_2 := if check_2_statistic() then trim(to_text(card.card_stamp_2)) else "" - stamp_1 + (if stamp_1 != "" and stamp_2 != "" then "," else "") + stamp_2 + fields := fields_to_check_statistic("card_stamp") + result := for x from 0 to 5 do ("," + trim(to_text(fields[x]))) + clean_commas_statistic(result) } symbol_statistic := { - symbol_1 := trim(to_text(card.card_symbol)) - symbol_2 := if check_2_statistic() then trim(to_text(card.card_symbol_2)) else "" - symbol_1 + (if symbol_1 != "" and symbol_2 != "" then "," else "") + symbol_2 + fields := fields_to_check_statistic("card_symbol") + result := for x from 0 to 5 do ("," + trim(to_text(fields[x]))) + clean_commas_statistic(result) } # Count how many creatures, non-creature permanents, and non-permanents are in the set. permanent_statistic := { - result := face_permanent_statistic(to_text(card.super_type)) + (if check_2_statistic() then face_permanent_statistic(to_text(card.super_type_2)) else "") - substring(result, begin: 1) + fields := fields_to_check_statistic("super_type") + result := for x from 0 to 5 do ("," + face_permanent_statistic(to_text(fields[x]))) + clean_commas_statistic(result) } face_permanent_statistic := { @@ -729,8 +781,9 @@ canon_types_statistic := ["land", "creature", "kindred", "artifact", "enchantmen canon_types_count_statistic := length(canon_types_statistic)-1 supertype_statistic := { - result := face_supertype_statistic(card.super_type) + (if check_2_statistic() then face_supertype_statistic(card.super_type_2) else "") - substring(result, begin: 1) + fields := fields_to_check_statistic("super_type") + result := for x from 0 to 5 do ("," + face_supertype_statistic(fields[x])) + clean_commas_statistic(result) } face_supertype_statistic := { @@ -753,15 +806,17 @@ face_supertype_statistic := combined_type_statistic := { - type_1 := trim(to_text(card.super_type)) - type_2 := if check_2_statistic() then trim(to_text(card.super_type_2)) else "" - type_1 + (if type_1 != "" and type_2 != "" then "," else "") + type_2 + fields := fields_to_check_statistic("super_type") + result := for x from 0 to 5 do ("," + trim(to_text(fields[x]))) + clean_commas_statistic(result) } type_extended_statistic := { - result := face_type_extended_statistic(card.super_type) + (if check_2_statistic() then face_type_extended_statistic(card.super_type_2) else "") - if result == "" then " " + all_en_space_statistic(lang_setting("no_type")) else substring(result, begin: 1) + fields := fields_to_check_statistic("super_type") + result := for x from 0 to 5 do ("," + face_type_extended_statistic(fields[x])) + result := clean_commas_statistic(result) + if result == "" then " " + all_en_space_statistic(lang_setting("no_type")) else result } face_type_extended_statistic := { @@ -791,17 +846,11 @@ face_type_extended_statistic := custom_supertype_statistic := split_text@(input: set.custom_super_types, match: " ?, ?", include_empty: false) -has_type_statistic := -{ - type := card.type + (if check_2_statistic(card:card) then " " + card.type_2 else "") - lang_setting("is_"+input)(type) -} - combined_subtype_statistic := { - type_1 := clean_combined_subtype_statistic(card.sub_type) - type_2 := if check_2_statistic() then clean_combined_subtype_statistic(card.sub_type_2) else "" - type_1 + (if type_1 != "" and type_2 != "" then "," else "") + type_2 + fields := fields_to_check_statistic("sub_type") + result := for x from 0 to 5 do ("," + clean_combined_subtype_statistic(fields[x])) + clean_commas_statistic(result) } clean_combined_subtype_statistic := tag_contents@(tag: "", contents: {""}) + to_text + trim + replace_full_width_commas_statistic @@ -995,32 +1044,35 @@ keep_only_supertypes_statistic := trim(result) } -creature_subtype_statistic := -{ - canon := creature_subtypes_statistic() - custom := replace_commas_statistic(set.custom_creature_races) + ";" + replace_commas_statistic(set.custom_creature_classes) + ";" - excluded := "" - result := (face_creature_subtype_statistic(sub: card.sub_type, super: card.super_type, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) + - (if check_2_statistic() then face_creature_subtype_statistic(sub: card.sub_type_2, super: card.super_type_2, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded) else "") - substring(result, begin: 1) -} +#creature_subtype_statistic := +#{ +# super_fields := fields_to_check_statistic("super_type") +# sub_fields := fields_to_check_statistic("sub_type") +# canon := creature_subtypes_statistic() +# custom := replace_commas_statistic(set.custom_creature_races) + ";" + replace_commas_statistic(set.custom_creature_classes) + ";" +# excluded := "" +# result := for x from 0 to 5 do ("," + face_creature_subtype_statistic(sub: sub_fields[x], super: super_fields[x], canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) +# clean_commas_statistic(result) +#} creature_race_statistic := { + super_fields := fields_to_check_statistic("super_type") + sub_fields := fields_to_check_statistic("sub_type") canon := creature_races_statistic() custom := replace_commas_statistic(set.custom_creature_races) + ";" excluded := replace_commas_statistic(set.custom_creature_classes) + ";" - result := (face_creature_subtype_statistic(sub: card.sub_type, super: card.super_type, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) + - (if check_2_statistic() then face_creature_subtype_statistic(sub: card.sub_type_2, super: card.super_type_2, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded) else "") - substring(result, begin: 1) + result := for x from 0 to 5 do ("," + face_creature_subtype_statistic(sub: sub_fields[x], super: super_fields[x], canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) + clean_commas_statistic(result) } creature_class_statistic := { + super_fields := fields_to_check_statistic("super_type") + sub_fields := fields_to_check_statistic("sub_type") canon := creature_classes_statistic() custom := replace_commas_statistic(set.custom_creature_classes) + ";" excluded := replace_commas_statistic(set.custom_creature_races) + ";" - result := (face_creature_subtype_statistic(sub: card.sub_type, super: card.super_type, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) + - (if check_2_statistic() then face_creature_subtype_statistic(sub: card.sub_type_2, super: card.super_type_2, canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded) else "") - substring(result, begin: 1) + result := for x from 0 to 5 do ("," + face_creature_subtype_statistic(sub: sub_fields[x], super: super_fields[x], canon_subtypes: canon, custom_subtypes: custom, excluded_subtypes: excluded)) + clean_commas_statistic(result) } face_creature_subtype_statistic := @@ -1046,8 +1098,10 @@ face_creature_subtype_statistic := noncreature_subtype_statistic := { - result := face_noncreature_subtype_statistic(sub: card.sub_type, super: card.super_type) + (if check_2_statistic() then face_noncreature_subtype_statistic(sub: card.sub_type_2, super: card.super_type_2) else "") - substring(result, begin: 1) + super_fields := fields_to_check_statistic("super_type") + sub_fields := fields_to_check_statistic("sub_type") + result := for x from 0 to 5 do ("," + face_noncreature_subtype_statistic(sub: sub_fields[x], super: super_fields[x])) + clean_commas_statistic(result) } face_noncreature_subtype_statistic := { @@ -1150,207 +1204,251 @@ format_number_statistic := } power_statistic := { - fields := ["power"] + if not check_2_statistic() then [] - else if contains(card.shape, match: "flip") - or contains(card.shape, match: "split") - or contains(card.shape, match: "aftermath") then ["power_2"] - else if contains(card.shape, match: "double faced") then (if contains((card.styling or else styling).front_style or else "", match: "leveler") then ["power_4"] else ["power_2"]) - else [] - count := length(fields) - 1 - result := for x from 0 to count do format_number_statistic(card[fields[x]]) - substring(result, begin: 1) + fields := fields_to_check_statistic("power") + result := for x from 0 to 5 do ("," + format_number_statistic(fields[x])) + clean_commas_statistic(result) } toughness_statistic := { - fields := ["toughness"] + if not check_2_statistic() then [] - else if contains(card.shape, match: "flip") - or contains(card.shape, match: "split") - or contains(card.shape, match: "aftermath") then ["toughness_2"] - else if contains(card.shape, match: "double faced") then (if contains((card.styling or else styling).front_style or else "", match: "leveler") then ["toughness_4"] else ["toughness_2"]) - else [] - count := length(fields) - 1 - result := for x from 0 to count do format_number_statistic(card[fields[x]]) - substring(result, begin: 1) + fields := fields_to_check_statistic("toughness") + result := for x from 0 to 5 do ("," + format_number_statistic(fields[x])) + clean_commas_statistic(result) } loyalty_statistic := { - result_1 := if lang_setting("is_planeswalker")(card.super_type) or contains(card.shape, match: "planeswalker") then trim(to_text(card.loyalty)) else "" - result_1 := format_number_statistic(result_1) - result_2 := if check_2_statistic() and lang_setting("is_planeswalker")(card.super_type_2) then trim(to_text(card.loyalty_2)) else "" - result_2 := format_number_statistic(result_2) - substring(result_1+result_2, begin: 1) + super_fields := fields_to_check_statistic("super_type") + loyalty_fields := fields_to_check_statistic("loyalty") + result := for x from 0 to 5 do ("," + if not lang_setting("is_battle")(super_fields[x]) then format_number_statistic(trim(to_text(loyalty_fields[x]))) else "") + clean_commas_statistic(result) } defense_statistic := { - result_1 := if lang_setting("is_battle")(card.super_type) then trim(to_text(card.loyalty)) else "" - result_1 := format_number_statistic(result_1) - result_2 := if check_2_statistic() and lang_setting("is_battle")(card.super_type_2) then trim(to_text(card.loyalty_2)) else "" - result_2 := format_number_statistic(result_2) - substring(result_1+result_2, begin: 1) + super_fields := fields_to_check_statistic("super_type") + loyalty_fields := fields_to_check_statistic("loyalty") + result := for x from 0 to 5 do ("," + if lang_setting("is_battle")(super_fields[x]) then format_number_statistic(trim(to_text(loyalty_fields[x]))) else "") + clean_commas_statistic(result) } -# Should we check the secondary face of the card, like the card.casting_cost_2 or card.type_2 fields? -check_2_statistic := +# Should we check the secondary face, like the card.casting_cost_2 or card.type_2 fields? +check_secondary_statistic := { - (chosen(set.count_secondary_faces, choice: "MDFC") and contains(card.shape, match: "modal")) or - (chosen(set.count_secondary_faces, choice: "TDFC") and contains(card.shape, match: "transform")) or - (chosen(set.count_secondary_faces, choice: "TDFC") and contains(card.shape, match: "double faced") and not contains(card.shape, match: "modal") and not contains(card.shape, match: "transform")) or (chosen(set.count_secondary_faces, choice: "Aftermath") and contains(card.shape, match: "aftermath")) or (chosen(set.count_secondary_faces, choice: "Adventure") and contains(card.shape, match: "adventure")) or (chosen(set.count_secondary_faces, choice: "Flip") and contains(card.shape, match: "flip")) or (chosen(set.count_secondary_faces, choice: "Split") and contains(card.shape, match: "split")) } +# Should we check the tertiary face, like the card.casting_cost_3 or card.type_3 fields? +check_tertiary_statistic := +{ + (chosen(set.count_secondary_faces, choice: "Adventure") and contains(card.shape, match: "adventure")) and + (left := styling.left_style or else "none") != "none" and left != "blank page" and + (right := styling.right_style or else "none") != "none" and right != "blank page" +} +# Should we check the linked back face of the card? +check_back_statistic := +{ + (chosen(set.count_secondary_faces, choice: "MDFC") and contains(card.transformation, match: "modal")) or + (chosen(set.count_secondary_faces, choice: "TDFC") and not contains(card.transformation, match: "modal")) +} +# Should we check the back face of the card because it's a dfc template? +check_double_statistic := +{ + (chosen(set.count_secondary_faces, choice: "MDFC") and contains(card.shape, match: "modal")) or + (chosen(set.count_secondary_faces, choice: "TDFC") and contains(card.shape, match: "transform")) or + (chosen(set.count_secondary_faces, choice: "TDFC") and contains(card.shape, match: "double faced") and not contains(card.shape, match: "modal") and not contains(card.shape, match: "transform")) +} -# Should we check the card.rule_text_X fields, or the card.level_X_text fields? -# TODO this is gonna need tweaked once we have Urza, Planeswalker support -text_to_check_statistic := +# Gather the fields that need checking, store them in an array that is always: +# [front face primary, front face secondary, front face tertiary, back face primary, back face secondary, back face tertiary] +fields_to_check_statistic := { - if contains(card.shape, match: "double faced") then - ( - front := (card.styling or else styling).front_style or else "" - if contains(front, match: "planeswalker") or contains(front, match: "leveler") or contains(card.shape, match: "planeswalker") or contains(card.shape, match: "leveler") then - [ - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "rule_text_3" - ] - else if contains(front, match: "saga") then - [ - "chapter_text", - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "rule_text_3" - ] - else if contains(front, match: "class") then - [ - "chapter_text", - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "level_9_text", - "level_10_text", - "level_11_text", - "rule_text_3" - ] - else - [ - "rule_text", - "rule_text_3" - ] - ) - else if contains(card.shape, match: "planeswalker") then + back := get_back_face(card) + check_2 := all or check_secondary_statistic() + check_3 := all or check_tertiary_statistic() + check_back := back != nil and ( all or check_back_statistic()) + check_back_2 := back != nil and ( all or (check_back and check_secondary_statistic(card:back))) + check_back_3 := back != nil and ( all or (check_back and check_tertiary_statistic(card:back))) + check_double := all or check_double_statistic() + [ + card[input], + (if check_2 then card[input + "_2"] else ""), + (if check_3 then card[input + "_3"] else ""), + (if check_back then back[input] else + if check_double then card[input + "_2"] else ""), + (if check_back_2 then back[input + "_2"] else ""), + (if check_back_3 then back[input + "_3"] else "") + ] +}@(all: false) + +# Gather the text fields that need checking, store them in an array that is always: +# [front face primary, front face secondary, front face tertiary, back face primary, back face secondary, back face tertiary] +# each entry is itself an array of the fields that need checking +texts_to_check_1_statistic := +{ + if contains(card.shape, match: "planeswalker") then [ - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "level_5_text", - "level_6_text", - "rule_text_3" + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.level_5_text, + card.level_6_text, + card.rule_text_3 ] else if contains(card.shape, match: "leveler") then [ - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "level_5_text", - "rule_text_3" + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.level_5_text, + card.rule_text_3 ] else if contains(card.shape, match: "saga") then [ - "chapter_text", - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "level_5_text", - "level_6_text", - "level_7_text", - "rule_text_3" + card.chapter_text, + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.level_5_text, + card.level_6_text, + card.level_7_text, + card.rule_text_3 ] else if contains(card.shape, match: "class") then [ - "chapter_text", - "level_1_text", - "level_2_text", - "level_3_text", - "level_4_text", - "level_5_text", - "level_6_text", - "level_7_text", - "level_9_text", - "level_10_text", - "level_11_text", - "level_12_text", - "level_13_text", - "level_14_text", - "rule_text_3" + card.chapter_text, + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.level_5_text, + card.level_6_text, + card.level_7_text, + card.level_9_text, + card.level_10_text, + card.level_11_text, + card.level_12_text, + card.level_13_text, + card.level_14_text, + card.rule_text_3 ] - else if contains(card.shape, match: "split") then + else if contains(card.shape, match: "double faced") or contains(card.shape, match: "split") then [ - "rule_text", - "rule_text_3" + card.rule_text, + card.rule_text_3 ] else if has_mutate_text_statistic(card: card) then [ - "rule_text", - "level_1_text" + card.rule_text, + card.level_1_text ] else # if contains(card.shape, match: "normal") or contains(card.shape, match: "adventure") or contains(card.shape, match: "flip") or contains(card.shape, match: "aftermath") then [ - "rule_text" + card.rule_text ] } -text_to_check_2_statistic := +texts_to_check_2_statistic := { - if contains(card.shape, match: "double faced") then - ( - back := (card.styling or else styling).back_style or else "" - if contains(back, match: "planeswalker") or contains(back, match: "leveler") then - [ - "level_5_text", - "level_6_text", - "level_7_text", - "level_8_text" - ] - else if contains(back, match: "saga") then - [ - "chapter_text_2", - "level_5_text", - "level_6_text", - "level_7_text", - "level_8_text" - ] - else if contains(back, match: "class") then - [ - "chapter_text_2", - "level_5_text", - "level_6_text", - "level_7_text", - "level_8_text", - "level_12_text", - "level_13_text", - "level_14_text" - ] - else - [ - "rule_text_2" - ] - ) - else if contains(card.shape, match: "adventure") or contains(card.shape, match: "flip") or contains(card.shape, match: "aftermath") or contains(card.shape, match: "split") then + if contains(card.shape, match: "double faced") or contains(card.shape, match: "adventure") or contains(card.shape, match: "flip") or contains(card.shape, match: "aftermath") or contains(card.shape, match: "split") then [ - "rule_text_2" + card.rule_text_2 ] else # if contains(card.shape, match: "normal") or contains(card.shape, match: "planeswalker") or contains(card.shape, match: "leveler") or contains(card.shape, match: "saga") or contains(card.shape, match: "class") [ ] } +texts_to_check_3_statistic := +{ + if contains(card.shape, match: "adventure") then + [ + card.rule_text_3 + ] + else + [ + ] +} +texts_to_check_mainframe_dfc_statistic := +{ + styling := get_card_styling(card) + front := styling.front_style + back := styling.back_style + front_map := if contains(front, match: "planeswalker") or contains(front, match: "leveler") then + [ + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.rule_text_3 + ] + else if contains(front, match: "saga") or contains(front, match: "case") then + [ + card.chapter_text, + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.rule_text_3 + ] + else if contains(front, match: "class") then + [ + card.chapter_text, + card.level_1_text, + card.level_2_text, + card.level_3_text, + card.level_4_text, + card.level_9_text, + card.level_10_text, + card.level_11_text, + card.rule_text_3 + ] + else + [ + card.rule_text, + card.rule_text_3 + ] + back_map := if not check_double_statistic() then + [ + ] + else if contains(back, match: "planeswalker") or contains(back, match: "case") then + [ + card.level_9_text, + card.level_10_text, + card.level_11_text, + card.level_12_text + ] + else if contains(back, match: "leveler") then + [ + card.level_5_text, + card.level_6_text, + card.level_7_text + ] + else if contains(back, match: "saga") then + [ + card.chapter_text_2, + card.level_5_text, + card.level_6_text, + card.level_7_text, + card.level_8_text + ] + else if contains(back, match: "class") then + [ + card.chapter_text_2, + card.level_5_text, + card.level_6_text, + card.level_7_text, + card.level_8_text, + card.level_12_text, + card.level_13_text, + card.level_14_text + ] + else + [ + card.rule_text_2 + ] + [front_map, [], [], back_map, [], []] +} # TODO don't love this implementation has_mutate_text_statistic := { @@ -1359,6 +1457,40 @@ has_mutate_text_statistic := card.level_1_text != "" and card.level_1_text != card.rule_text } +texts_to_check_statistic := +{ + if (card.stylesheet.short_name or else set.stylesheet.short_name) == "Mainframe DFC" then texts_to_check_mainframe_dfc_statistic() else ( + back := get_back_face(card) + check_2 := all or check_secondary_statistic() + check_3 := all or check_tertiary_statistic() + check_back := back != nil and ( all or check_back_statistic()) + check_back_2 := back != nil and ( all or (check_back and check_secondary_statistic(card:back))) + check_back_3 := back != nil and ( all or (check_back and check_tertiary_statistic(card:back))) + check_double := all or check_double_statistic() + [ + texts_to_check_1_statistic(), + (if check_2 then texts_to_check_2_statistic() else []), + (if check_3 then texts_to_check_3_statistic() else []), + (if check_back then texts_to_check_1_statistic(card:back) else + if check_double then texts_to_check_2_statistic() else []), + (if check_back_2 then texts_to_check_2_statistic(card:back) else []), + (if check_back_3 then texts_to_check_3_statistic(card:back) else []) + ]) +}@(all: false) + +indicators_to_check_statistic := +{ + indicators := fields_to_check_statistic("indicator", all: all) + back := get_back_face(card) + [ + (if has_identity() then indicators[0] else ""), + (if has_identity_2() then indicators[1] else ""), + (if has_identity_3() then indicators[2] else ""), + (if back != nil and has_identity(card:back) then indicators[3] else ""), + (if back != nil and has_identity_2(card:back) then indicators[4] else ""), + (if back != nil and has_identity_3(card:back) then indicators[5] else "") + ] +}@(all: false) #Is the given text field visible on the card? This would be much better than the above methods to know which fields to check, but card_style does not initialize properly, so it's not usable atm. #is_field_visible_statistic := @@ -1569,9 +1701,18 @@ trim_from_draw_statistic := or (set.trim_statistics and (card.rarity == "special" or card.rarity == "masterpiece")) or is_tokenish_statistics(card.shape) or lang_setting("is_nonstandard")(card.type) - or filter_from_statistic(card: card) == lang_setting("message_filter_filtered") } +exclude_from_statistic := +{ + get_front_face(card) != nil or filter_from_statistic() == lang_setting("message_filter_filtered") or trim_from_statistic() +} +exclude_from_draw_statistic := +{ + get_front_face(card) != nil or filter_from_statistic() == lang_setting("message_filter_filtered") or trim_from_draw_statistic() +} + +# Info for the user statistics_info_en := { trace("