Fix Cyberbelt (#26507)

This commit is contained in:
Kurfursten
2020-05-15 21:03:33 -05:00
committed by GitHub
parent 86618f5f4e
commit a037f77ca7
4 changed files with 6 additions and 6 deletions

View File

@@ -320,7 +320,7 @@
/obj/item/weapon/storage/belt/silicon
name = "cyber trophy belt"
desc = "Contains intellicards, posibrains, and MMIs. Those contained within can only speak to the wearer."
icon_state = "securitybelt"
icon_state = "cyberbelt"
item_state = "security"
fits_max_w_class = 4
max_combined_w_class = 28
@@ -345,7 +345,7 @@
return mobs
/proc/RenderBeltChat(var/obj/item/weapon/storage/belt/silicon/B,var/mob/living/C,var/message)
var/list/listeners = observers
var/list/listeners = observers.Copy()
if(istype(B.loc,/mob))
var/mob/M = B.loc
listeners += M

View File

@@ -36,7 +36,7 @@
if (container && istype(container, /obj/item/device/mmi))
if(istype(container.loc,/obj/item/weapon/storage/belt/silicon))
RenderBeltChat(container.loc,src,message)
return
return 1
else
return ..(message, "R")
return ..(message)

View File

@@ -1,11 +1,11 @@
/mob/living/silicon/ai/say(var/message)
if(loc.loc && istype(loc.loc,/obj/item/weapon/storage/belt/silicon)) //loc would be an aicard in this case
RenderBeltChat(loc.loc,src,message)
return
return 1
if(parent && istype(parent) && parent.stat != 2) //If there is a defined "parent" AI, it is actually an AI, and it is alive, anything the AI tries to say is said by the parent instead.
parent.say(message)
return
..(message)
return 1
return ..(message)
/mob/living/silicon/ai/render_speaker_track_start(var/datum/speech/speech)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB