Emissive LED Collar Fix (#23125)

* Turned LED collars into an emissive, it no longer renders above
everything.

<img width="114" height="127" alt="image"
src="https://github.com/user-attachments/assets/f1056359-68b8-4870-9adb-e668d942df08"
/>
This commit is contained in:
Geeves
2026-08-22 13:36:26 +00:00
committed by GitHub
parent 1d258388c9
commit 4590d7da08
2 changed files with 14 additions and 3 deletions
@@ -1397,16 +1397,24 @@
icon = 'icons/obj/item/clothing/accessory/led_collar.dmi'
icon_state = "led_collar"
item_state = "led_collar"
plane = ABOVE_LIGHTING_PLANE
contained_sprite = TRUE
slot = ACCESSORY_SLOT_UTILITY_MINOR
var/mutable_appearance/inventory_emissive
/obj/item/clothing/accessory/led_collar/Initialize()
. = ..()
color = pick("#00FFFF", "#FF0000", "#FF00FF", "#FF6600", "#CC00CC")
AddOverlays(emissive_appearance(icon, icon_state))
set_light_range_power_color(0.5, 0.4, color)
set_light_on(TRUE)
/obj/item/clothing/accessory/led_collar/get_inv_overlay(mob/M, force = FALSE)
var/image/I = ..()
if(!inventory_emissive)
inventory_emissive = emissive_appearance(I.icon, I.icon_state)
I.AddOverlays(inventory_emissive)
return I
/// Update the light mode to one used by accessories when it gets attached.
/obj/item/clothing/accessory/led_collar/on_attached(obj/item/clothing/S, mob/user)
. = ..()
@@ -1426,8 +1434,7 @@
/obj/item/clothing/accessory/led_collar/get_accessory_mob_overlay(var/mob/living/carbon/human/H, var/force = FALSE)
var/image/I = ..()
I.plane = ABOVE_LIGHTING_PLANE
I.appearance_flags |= KEEP_APART
I.AddOverlays(emissive_appearance(I.icon, I.icon_state))
return I
/obj/item/clothing/accessory/newgibson_uraniumglass_necklace