NPC Emote Filter (#15592)

This commit is contained in:
Kashargul
2023-12-11 14:20:04 +01:00
committed by GitHub
parent 2ae5161a98
commit 552deaedf1
8 changed files with 17 additions and 3 deletions
+4 -1
View File
@@ -188,7 +188,10 @@
if(input)
log_emote(message,src) //Log before we add junk
message = "<span class='emote'><B>[src]</B> [input]</span>"
if(usr && usr.client)
message = "<span class='emote'><B>[src]</B> [input]</span>"
else
message = "<span class='npcemote'><B>[src]</B> [input]</span>"
else
return
@@ -23,6 +23,7 @@ export const MESSAGE_TYPE_INTERNAL = 'internal';
// Must match the set of defines in code/__DEFINES/chat.dm
export const MESSAGE_TYPE_SYSTEM = 'system';
export const MESSAGE_TYPE_LOCALCHAT = 'localchat';
export const MESSAGE_TYPE_NPCEMOTE = 'npcemote';
export const MESSAGE_TYPE_PLOCALCHAT = 'plocalchat';
export const MESSAGE_TYPE_VORE = 'vore';
export const MESSAGE_TYPE_RADIO = 'radio';
@@ -61,6 +62,12 @@ export const MESSAGE_TYPES = [
description: 'In-character local messages (say, emote, etc)',
selector: '.say, .emote, .emotesubtle',
},
{
type: MESSAGE_TYPE_NPCEMOTE,
name: 'NPC Emotes',
description: 'In-character emotes from NPCs',
selector: '.npcemote',
},
{
type: MESSAGE_TYPE_PLOCALCHAT,
name: 'Local (Pred/Prey)',
@@ -369,6 +369,7 @@ img.icon.bigicon {
.say,
.emote,
.npcemote,
.infoplain,
.oocplain,
.warningplain {
@@ -387,6 +387,7 @@ img.icon.bigicon {
.say,
.emote,
.npcemote,
.infoplain,
.oocplain,
.warningplain {
@@ -369,6 +369,7 @@ img.icon.bigicon {
.say,
.emote,
.npcemote,
.infoplain,
.oocplain,
.warningplain {
@@ -387,6 +387,7 @@ img.icon.bigicon {
.say,
.emote,
.npcemote,
.infoplain,
.oocplain,
.warningplain {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long