Fixes eye of god not sending a message when its scan recharges (#69042)

* Fixes eye of god not sending a message when its scan recharges

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
ShizCalev
2022-08-08 17:48:11 -04:00
committed by GitHub
co-authored by MrMelbert
parent e9913dbe5d
commit c949764779
+4 -1
View File
@@ -780,11 +780,14 @@
owner.playsound_local(get_turf(owner), 'sound/magic/smoke.ogg', 50, TRUE)
owner.balloon_alert(owner, "[living_scanned] scanned")
addtimer(CALLBACK(src, /atom/.proc/balloon_alert, owner, "scan recharged"), cooldown_time)
addtimer(CALLBACK(src, .proc/send_cooldown_end_message, cooldown_time))
StartCooldown()
return TRUE
/datum/action/cooldown/scan/proc/send_cooldown_end_message()
owner?.balloon_alert(owner, "scan recharged")
/datum/status_effect/agent_pinpointer/scan
duration = 15 SECONDS
alert_type = /atom/movable/screen/alert/status_effect/agent_pinpointer/scan