fix type_name for localization

type_name() returns a localized string, so type_name comparisions should compare against type_name() of a known quantity instead
This commit is contained in:
cajun
2024-09-23 10:12:58 -05:00
parent 1a5432a0ec
commit 8fd810b1d3
5 changed files with 13 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ installer group: magic/m15 style/sagas
icon: card-sample.png
position hint: 010
version: 2024-09-01
version: 2024-09-23
depends on:
package: magic.mse-game
version: 2014-06-25
@@ -55,12 +55,12 @@ init script:
identity: "identity.png"
]
template := {
if type_name(harder_script[type] or else nil) != "nothing"
if type_name(harder_script[type] or else nil) != type_name(nil)
then harder_script[type](input, land:false)
else template_prefix[type] + input + template_suffix[type]
}
land_template := {
if type_name(harder_script[type] or else nil) != "nothing"
if type_name(harder_script[type] or else nil) != type_name(nil)
then harder_script[type](input, land:true)
else template_prefix[type] + (if input == "a" then "c" else input) + (if landless(type) then "" else "l") + template_suffix[type]
}
@@ -235,7 +235,7 @@ init script:
auto_snow := { contains(styling.auto_frames, match:"snow") and lang_setting("is_snow")(card.super_type) }
is_beyond := {
chosen(styling.other_options, choice:"universes beyond")
or (chosen(styling.auto_frames, choice:"universes beyond") and card.card_stamp == "universes beyond")
or (chosen(styling.auto_frames, choice:"universes beyond") and (card.card_stamp == "universes beyond" or card.card_stamp == "flatstamped universes beyond"))
}
nyx_background := { color_background(type:"nyx", base_hybrid:card_hybrid) }
snow_background := { color_background(type:"snowtexture", base_hybrid:card_hybrid) }