Uses the update_icon_updates_onmob element to update the flash's onmob sprite (#58674)

This commit is contained in:
cacogen
2021-04-26 01:00:21 -07:00
committed by GitHub
parent 162409cf50
commit f64b03ec22
+3 -1
View File
@@ -33,6 +33,9 @@
var/cooldown = 0
var/last_trigger = 0 //Last time it was successfully triggered.
/obj/item/assembly/flash/ComponentInitialize()
. = ..()
AddElement(/datum/element/update_icon_updates_onmob)
/obj/item/assembly/flash/suicide_act(mob/living/user)
if(burnt_out)
@@ -46,7 +49,6 @@
return FIRELOSS
/obj/item/assembly/flash/update_icon(updates=ALL, flash = FALSE)
inhand_icon_state = "[burnt_out ? "flashtool_burnt" : "[initial(inhand_icon_state)]"]"
flashing = flash
. = ..()
if(flash)