mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
Sling veil now properly updates plasmamans helmet sprites. (#17072)
* fix * fix prt 2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user