Adds CI for checking if a variable exists (#31855)

* i leave for one month smh

* feature compatibility

* fixed
This commit is contained in:
Contrabang
2026-04-13 23:26:31 -04:00
committed by GitHub
parent aea6c4d794
commit d4595054ce
6 changed files with 31 additions and 33 deletions
+4 -3
View File
@@ -30,9 +30,6 @@
set_icon_from_cache()
/obj/item/clothing/under/proc/set_icon_from_cache(palette_key = null, dye_key = null)
if(!palette_key && ("icon_palette_key" in vars))
var/obj/item/clothing/under/color/colored_jumpsuit = src
palette_key = palette_key || colored_jumpsuit.icon_palette_key
if(!palette_key)
return FALSE
dye_key = dye_key || dyeing_key
@@ -54,6 +51,10 @@
icon_state = "[icon_state_prefix][icon_state_skirt]"
inhand_icon_state = "[icon_state_prefix]_suit"
/obj/item/clothing/under/color/set_icon_from_cache(palette_key, dye_key)
palette_key = palette_key || icon_palette_key
. = ..(palette_key, dye_key)
/obj/item/clothing/under/color/random/Initialize(mapload)
var/list/excluded = list(/obj/item/clothing/under/color/random,
/obj/item/clothing/under/color/blue/dodgeball,