From ef25aee3e5a05e964dda9cfd8354297720abf4cd Mon Sep 17 00:00:00 2001 From: Adri Date: Wed, 20 Apr 2022 13:24:02 +0200 Subject: [PATCH] Adds a visual and audio cue when the sleeper cures addiction (#17604) * Adds a visible and audio cue when the sleeper cures addiction * Removes implied src * Changes visible_message to atom_say Co-authored-by: Vicacrov --- code/game/machinery/Sleeper.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index 5200bfa545d..c6a71fe30cc 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -5,7 +5,7 @@ //////////// /obj/machinery/sleeper - name = "Sleeper" + name = "sleeper" icon = 'icons/obj/cryogenic2.dmi' icon_state = "sleeper-open" var/base_icon = "sleeper" @@ -127,6 +127,8 @@ if(world.timeofday > (R.last_addiction_dose + ADDICTION_SPEEDUP_TIME)) // 2.5 minutes addiction_removal_chance = 10 if(prob(addiction_removal_chance)) + atom_say("Patient's addiction was cured.") + playsound(get_turf(src), 'sound/machines/ping.ogg', 50, 0) to_chat(occupant, "You no longer feel reliant on [R.name]!") occupant.reagents.addiction_list.Remove(R) qdel(R)