From 4158a989fdf0b148c0bc9dbef78120869196e494 Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Sat, 11 Jan 2025 18:16:08 -0600 Subject: [PATCH] fix capitalization issues on This type --- data/magic.mse-game/script | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index e9a4b17f9..aa389e28b 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -1692,6 +1692,19 @@ text_filter := tag: "", contents: { "" + (if card_name=="" then "CARDNAME" else strip_card_codes(card_name, atom:true)) + "" } ) + + #### capitalize This type when appropriate + replace@( + match:"([•.]) this", + replace:"\\1 This" + ) + + replace@( + match:"([\"“'])this", + replace:"\\1This" + ) + + replace@( + match:"^this", + replace:"This" + ) + tag_contents@( tag: "", contents: { "" + (if card_name=="" then "LEGENDNAME" else legend_filter(strip_card_codes(card_name, atom:true))) + "" } @@ -3010,8 +3023,8 @@ card_name_for_level := { if set.CARDNAME_replacement == "card's type" then ( ty := to_lower(cardname_type(card["type"+tag])) - if ty == "" then "this" - else "this " + ty + if ty == "" then "This" + else "This " + ty ) else if set.CARDNAME_replacement == "card's alias" and card["alias"+tag] != "" then card["alias"+tag]