mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Uses the update_icon_updates_onmob element to update the flash's onmob sprite (#58674)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user