From 10001583236902636bc852abd8c76bcc4b9f6bf1 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Sat, 15 Mar 2025 17:02:50 -0700 Subject: [PATCH] [MIRROR] More plush tweaks (#10434) Co-authored-by: Cameron Lennox --- code/game/objects/items/toys/toys.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/game/objects/items/toys/toys.dm b/code/game/objects/items/toys/toys.dm index 49a6308eef..8136640441 100644 --- a/code/game/objects/items/toys/toys.dm +++ b/code/game/objects/items/toys/toys.dm @@ -806,6 +806,10 @@ var/obj/item/stored_item // Note: Stored items can't be bigger than the plushie itself. var/adjusted_name // Our modified name. Used so people don't do funny business with us! + //This makes it so it reverts back to its initial name when it speaks if TRUE. + //This should be used if a plushie can be made to say custom messages. Not currently required at the moment, but here just in case it'd added in the future. + var/prevent_impersonation = FALSE + /obj/item/toy/plushie/Initialize(mapload) . = ..() adjusted_name = name @@ -845,6 +849,13 @@ last_message = world.time /obj/item/toy/plushie/proc/say_phrase() + //If we don't prevent impersonation, we just speak like normal! + //The PI var is used in case a plushie can be made to speak a custom message. + if(!prevent_impersonation) + atom_say("[pokephrase]") + return + + //If we do prevent impersonation, change the name to original, speak, then bring it back. name = initial(name) //No namestealing. atom_say("[pokephrase]") name = adjusted_name