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

@@ -190,12 +190,12 @@ init script:
flag2: "flag.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] + input + (if landless(type) or input == "a" then "" else "l") + template_suffix[type]
}