mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[MIRROR] Allows Sentient Diseases to talk to ghostchat (#4055)
* Allows Sentient Diseases to talk to ghostchat (#57391) * Allows Sentient Diseases to talk to ghostchat Co-authored-by: nianjiilical <nianjiilical@gmail.com>
This commit is contained in:
co-authored by
nianjiilical
parent
e889c56bbb
commit
2b1cab0bc5
@@ -152,6 +152,8 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
|
||||
|
||||
#define isovermind(A) (istype(A, /mob/camera/blob))
|
||||
|
||||
#define issentientdisease(A) (istype(A, /mob/camera/disease))
|
||||
|
||||
#define iscameramob(A) (istype(A, /mob/camera))
|
||||
|
||||
#define isaicamera(A) (istype(A, /mob/camera/ai_eye))
|
||||
|
||||
@@ -52,6 +52,8 @@ the new instance inside the host to be updated to the template's stats.
|
||||
/mob/camera/disease/Initialize(mapload)
|
||||
.= ..()
|
||||
|
||||
ADD_TRAIT(src, TRAIT_SIXTHSENSE, INNATE_TRAIT) //at least they'll have SOMEONE to talk to
|
||||
|
||||
disease_instances = list()
|
||||
hosts = list()
|
||||
|
||||
@@ -108,6 +110,16 @@ the new instance inside the host to be updated to the template's stats.
|
||||
. += "<span class='notice'>[ability.name]</span>"
|
||||
|
||||
/mob/camera/disease/say(message, bubble_type, list/spans = list(), sanitize = TRUE, datum/language/language = null, ignore_spam = FALSE, forced = null)
|
||||
if(!message)
|
||||
return
|
||||
log_talk(message, LOG_SAY)
|
||||
var/rendered = "<span class='sentientdisease'><b>[src]</b> says, \"[message]\"</span>"
|
||||
for(var/mob/listener in GLOB.mob_list)
|
||||
if(issentientdisease(listener))
|
||||
to_chat(listener, rendered)
|
||||
else if(isobserver(listener))
|
||||
var/link = FOLLOW_LINK(listener, src)
|
||||
to_chat(listener, "[link] [rendered]")
|
||||
return
|
||||
|
||||
/mob/camera/disease/Move(NewLoc, Dir = 0)
|
||||
|
||||
@@ -105,6 +105,8 @@ h1.alert, h2.alert {color: #000000;}
|
||||
.revenwarning {color: #760fbb; font-style: italic;}
|
||||
.revendanger {color: #760fbb; font-weight: bold; font-size: 3;}
|
||||
|
||||
.sentientdisease {color: #446600;}
|
||||
|
||||
.deconversion_message {color: #5000A0; font-size: 3; font-style: italic;}
|
||||
|
||||
.ghostalert {color: #5c00e6; font-style: italic; font-weight: bold;}
|
||||
|
||||
Reference in New Issue
Block a user