From e63da66c69818cce3c33dd638ef8a8d547f9844c Mon Sep 17 00:00:00 2001 From: Doxxmedearly <38594443+Doxxmedearly@users.noreply.github.com> Date: Thu, 30 Jul 2020 12:17:03 -0500 Subject: [PATCH] Implant phrase tweaks (#9488) --- code/game/objects/items/weapons/implants/implant.dm | 4 ++-- html/changelogs/doxxmedearly - implant_phrase_tweaks.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/doxxmedearly - implant_phrase_tweaks.yml diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index 470efd657f0..3bf43ec5fbe 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -237,7 +237,7 @@ Implant Specifics:
"} hear(msg) /obj/item/implant/explosive/hear(var/msg) - var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "") + var/list/replacechars = list("\"" = "",">" = "","<" = "","(" = "",")" = "") msg = replace_characters(msg, replacechars) if(findtext(msg,phrase)) activate() @@ -320,7 +320,7 @@ Implant Specifics:
"} /obj/item/implant/explosive/attack_self(mob/user) elevel = alert("What sort of explosion would you prefer?", "Implant Intent", "Localized Limb", "Destroy Body", "Full Explosion") phrase = input("Choose activation phrase:") as text - var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "") + var/list/replacechars = list("\"" = "",">" = "","<" = "","(" = "",")" = "") phrase = replace_characters(phrase, replacechars) user.mind.store_memory("\The [src] can be activated by saying something containing the phrase ''[phrase]'', say [phrase] to attempt to activate.", 0, 0) to_chat(user, "\The [src] can be activated by saying something containing the phrase ''[phrase]'', say [phrase] to attempt to activate.") diff --git a/html/changelogs/doxxmedearly - implant_phrase_tweaks.yml b/html/changelogs/doxxmedearly - implant_phrase_tweaks.yml new file mode 100644 index 00000000000..d8cb4cee4ad --- /dev/null +++ b/html/changelogs/doxxmedearly - implant_phrase_tweaks.yml @@ -0,0 +1,6 @@ +author: Doxxmedearly + +delete-after: True + +changes: + - tweak: "Allows the use of apostrophes in explosive implant code phrases."