mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fix Cyberbelt (#26507)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user