From e91174771326ee5ee156e3fedb29d34a3279e205 Mon Sep 17 00:00:00 2001 From: zxaber <37497534+zxaber@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:55:39 -0700 Subject: [PATCH] Give dead AIs an alert when they are being restored (#44870) AIs now get an alert and sound effect just like what other mobs get from a defib (and used to get from cloning). I used the same sound effect because it's recognizable in that it means being brought back to life. Currently AIs don't get notified at all when they get revived, and the best hope for whoever revives them is that they happen to check their body to see if anything changed (or if someone calls out over common and the AI player sees it). --- code/game/machinery/computer/aifixer.dm | 3 +++ .../modular_computers/file_system/programs/airestorer.dm | 1 + 2 files changed, 4 insertions(+) diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index ae929e4b2d6..ed8ad3def02 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -100,6 +100,9 @@ to_chat(usr, "Reconstruction in progress. This will take several minutes.") playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 25, 0) active = TRUE + if(occupier) + var/mob/living/silicon/ai/A = occupier + A.notify_ghost_cloning("Your core files are being restored!", source = src) add_fingerprint(usr) updateUsrDialog() diff --git a/code/modules/modular_computers/file_system/programs/airestorer.dm b/code/modules/modular_computers/file_system/programs/airestorer.dm index 1aa292f2479..0575d7b635a 100644 --- a/code/modules/modular_computers/file_system/programs/airestorer.dm +++ b/code/modules/modular_computers/file_system/programs/airestorer.dm @@ -44,6 +44,7 @@ if("PRG_beginReconstruction") if(A && A.health < 100) restoring = TRUE + A.notify_ghost_cloning("Your core files are being restored!", source = computer) return TRUE if("PRG_eject") if(computer.all_components[MC_AI])