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:
@@ -969,9 +969,9 @@ module_stamp := { color_background(type:"stamp", base_hybrid:stamp_hybrid, fol
|
||||
module_ubstamp := { color_background(type:"ubstamp", base_hybrid:stamp_hybrid, folder:template_prefix["ubstamp"], blend_type:"stamp") }
|
||||
module_nyx := {
|
||||
type := "nyx"
|
||||
if has_png(set.alternate_nyx) and type_name(harder_script["alt_nyx" or else nil] or else nil) != "nothing"
|
||||
if has_png(set.alternate_nyx) and type_name(harder_script["alt_nyx" or else nil] or else nil) != type_name(nil)
|
||||
then type := "alt_nyx"
|
||||
else if set.alternate_nyx == "star" and type_name(harder_script["star" or else nil] or else template_prefix["star" or else nil] or else nil) != "nothing"
|
||||
else if set.alternate_nyx == "star" and type_name(harder_script["star" or else nil] or else template_prefix["star" or else nil] or else nil) != type_name(nil)
|
||||
then type := "star"
|
||||
color_background(
|
||||
type: type,
|
||||
@@ -1092,7 +1092,7 @@ set_watermark_blend := {
|
||||
}
|
||||
spotlight_watermark_blend := {
|
||||
face := [1:card.card_color, 2:card.card_color_2, 3:card.card_color_3][face]
|
||||
if type_name(input) == "string" and contains(input, match:".png,") then (
|
||||
if type_name(input) == type_name("string") and contains(input, match:".png,") then (
|
||||
array := split_text(input+",,", match:",")
|
||||
input := array.0
|
||||
l := min(to_number(array.1),500)
|
||||
|
||||
Reference in New Issue
Block a user