Implant phrase tweaks (#9488)

This commit is contained in:
Doxxmedearly
2020-07-30 12:17:03 -05:00
committed by GitHub
parent 5da6f97196
commit e63da66c69
2 changed files with 8 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ Implant Specifics:<BR>"}
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:<BR>"}
/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]'', <B>say [phrase]</B> to attempt to activate.", 0, 0)
to_chat(user, "\The [src] can be activated by saying something containing the phrase ''[phrase]'', <B>say [phrase]</B> to attempt to activate.")

View File

@@ -0,0 +1,6 @@
author: Doxxmedearly
delete-after: True
changes:
- tweak: "Allows the use of apostrophes in explosive implant code phrases."