Sling veil now properly updates plasmamans helmet sprites. (#17072)

* fix

* fix prt 2
This commit is contained in:
Charlie
2021-11-12 06:22:30 +01:00
committed by GitHub
parent 61606630f5
commit 41e774ab7f
@@ -43,6 +43,8 @@
flash_protect ^= initial(flash_protect)
if(visor_vars_to_toggle & VISOR_TINT)
tint ^= initial(tint)
if(on)
toggle_light()
/obj/item/clothing/head/helmet/space/plasmaman/proc/toggle_welding_screen(mob/living/user)
if(weldingvisortoggle(user))
@@ -65,14 +67,15 @@
toggle_light(user)
/obj/item/clothing/head/helmet/space/plasmaman/proc/toggle_light(mob/user)
on = !on
icon_state = "[initial(icon_state)][on ? "-light":""]"
item_state = icon_state
if(up)
on = !on
icon_state = "[initial(icon_state)][on ? "-light":""]"
item_state = icon_state
if(isnull(user))
user = loc
var/mob/living/carbon/human/H = user
if(istype(H))
H.update_inv_head()
if(on)
if(!up)
if(istype(H))
@@ -84,7 +87,7 @@
set_light(0)
for(var/X in actions)
var/datum/action/A=X
var/datum/action/A = X
A.UpdateButtonIcon()
/obj/item/clothing/head/helmet/space/plasmaman/extinguish_light()