tweak(entity narrate): makes non-mob atoms use "The" in narration

Makes it so non-mob atoms with either \improper names, or lowercase names or names without "The" become preceeded by "The" when narrated using loud & talk, loud & emote, not-loud & talk, not-loud & emote.

Preceeding with lower case "the" causes doubling of "the", but that's a general byond issue and is solved by proper capitalization or use of \proper and it causing issues here would cause issues elsewhere anyway.

Done per request from ResidentCody
This commit is contained in:
Runa Dacino
2023-07-01 11:22:11 +02:00
parent c19098e19d
commit 5579f7f324
+4 -4
View File
@@ -307,10 +307,10 @@
/datum/entity_narrate/proc/narrate_tgui_atom(atom/A, message as text)
message = sanitize(message)
if(tgui_narrate_mode && tgui_narrate_privacy)
A.visible_message("<i><b>[A.name]</b> [message]</i>", range = 1)
A.visible_message("<i><b>\The [A.name]</b> [message]</i>", range = 1)
else if(tgui_narrate_mode && !tgui_narrate_privacy)
A.visible_message("<b>[A.name]</b> [message]",)
A.visible_message("<b>\The [A.name]</b> [message]",)
else if(!tgui_narrate_mode && tgui_narrate_privacy)
A.audible_message("<i><b>[A.name]</b> [message]</i>", hearing_distance = 1)
A.audible_message("<i><b>\The [A.name]</b> [message]</i>", hearing_distance = 1)
else if(!tgui_narrate_mode && !tgui_narrate_privacy)
A.audible_message("<b>[A.name]</b> [message]")
A.audible_message("<b>\The [A.name]</b> [message]")