mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 10:37:17 +01:00
* cyrillic fixes https://github.com/ss220club/Paradise/commit/cbdad6f11f0e0e16694cdb60f8ccb3d6dd23fe92 * fix: remove control characters * utf-8 support * more fixes * spellbook to utf8 * Update code/modules/research/server.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/research/server.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/paperwork/paper.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/paperwork/folders.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/mob_say_base.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * update formatting * fix ai alerts * fix spaceheater * fix noticeboard --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
25 lines
903 B
Plaintext
25 lines
903 B
Plaintext
/mob/dead/observer/say(message)
|
|
message = sanitize(copytext_char(message, 1, MAX_MESSAGE_LEN))
|
|
|
|
if(!message)
|
|
return
|
|
|
|
return say_dead(message)
|
|
|
|
/mob/dead/observer/handle_track(message, verb = "says", mob/speaker = null, speaker_name, atom/follow_target, hard_to_hear)
|
|
return "[speaker_name] ([ghost_follow_link(follow_target, ghost=src)])"
|
|
|
|
/mob/dead/observer/handle_speaker_name(mob/speaker = null, vname, hard_to_hear, check_name_against)
|
|
var/speaker_name = ..()
|
|
if(!speaker)
|
|
return speaker_name
|
|
//Announce computer and various stuff that broadcasts doesn't use it's real name but AI's can't pretend to be other mobs.
|
|
if(isAI(speaker) || isAutoAnnouncer(speaker))
|
|
return speaker_name
|
|
if(!check_name_against)
|
|
check_name_against = speaker_name
|
|
if(check_name_against == speaker.real_name)
|
|
return speaker_name
|
|
speaker_name = "[speaker.real_name] ([speaker_name])"
|
|
return speaker_name
|