mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
Implant phrase tweaks (#9488)
This commit is contained in:
@@ -237,7 +237,7 @@ Implant Specifics:<BR>"}
|
|||||||
hear(msg)
|
hear(msg)
|
||||||
|
|
||||||
/obj/item/implant/explosive/hear(var/msg)
|
/obj/item/implant/explosive/hear(var/msg)
|
||||||
var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "")
|
var/list/replacechars = list("\"" = "",">" = "","<" = "","(" = "",")" = "")
|
||||||
msg = replace_characters(msg, replacechars)
|
msg = replace_characters(msg, replacechars)
|
||||||
if(findtext(msg,phrase))
|
if(findtext(msg,phrase))
|
||||||
activate()
|
activate()
|
||||||
@@ -320,7 +320,7 @@ Implant Specifics:<BR>"}
|
|||||||
/obj/item/implant/explosive/attack_self(mob/user)
|
/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")
|
elevel = alert("What sort of explosion would you prefer?", "Implant Intent", "Localized Limb", "Destroy Body", "Full Explosion")
|
||||||
phrase = input("Choose activation phrase:") as text
|
phrase = input("Choose activation phrase:") as text
|
||||||
var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "")
|
var/list/replacechars = list("\"" = "",">" = "","<" = "","(" = "",")" = "")
|
||||||
phrase = replace_characters(phrase, replacechars)
|
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)
|
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.")
|
to_chat(user, "\The [src] can be activated by saying something containing the phrase ''[phrase]'', <B>say [phrase]</B> to attempt to activate.")
|
||||||
|
|||||||
6
html/changelogs/doxxmedearly - implant_phrase_tweaks.yml
Normal file
6
html/changelogs/doxxmedearly - implant_phrase_tweaks.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
author: Doxxmedearly
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- tweak: "Allows the use of apostrophes in explosive implant code phrases."
|
||||||
Reference in New Issue
Block a user