Exosuit Listen Fix (#11297)

This commit is contained in:
Geeves
2021-02-24 16:00:04 +01:00
committed by GitHub
parent 43918c7602
commit cdb3b2b9b6
2 changed files with 7 additions and 1 deletions
@@ -554,7 +554,7 @@
// heavily commented so it doesn't look like one fat chunk of code, which it still does - Geeves
/mob/living/heavy_vehicle/proc/handle_hear_say(var/mob/speaker, var/text)
var/found_text = findtext(text, name)
if(!found_text)
if(!found_text && nickname)
found_text = findtext(text, nickname)
if(found_text)
text = copytext(text, found_text) // I'm trimming the text each time so only information stated after eachother is valid
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- bugfix: "Fixes exosuits responding to their commands without invoking their names first."