[MIRROR] Npc say filter (#7648)

This commit is contained in:
CHOMPStation2
2024-01-29 03:07:46 -07:00
committed by GitHub
parent aecddb20aa
commit 5909b7a279
10 changed files with 17 additions and 10 deletions

View File

@@ -691,7 +691,7 @@
return
var/list/speech_bubble_hearers = list()
for(var/mob/M in get_mobs_in_view(7, src))
M.show_message("<span class='game say'><span class='name'>[src]</span> [atom_say_verb], \"[message]\"</span>", 2, null, 1)
M.show_message("<span class='npcsay'><span class='name'>[src]</span> [atom_say_verb], \"[message]\"</span>", 2, null, 1)
if(M.client)
speech_bubble_hearers += M.client

View File

@@ -41,7 +41,7 @@ var/list/doppler_arrays = list()
var/message = "Explosive disturbance detected - Epicenter at: grid ([x0],[y0]). Epicenter radius: [devastation_range]. Outer radius: [heavy_impact_range]. Shockwave radius: [light_impact_range]. Temporal displacement of tachyons: [took]seconds."
for(var/mob/O in hearers(src, null))
O.show_message("<span class='game say'><span class='name'>[src]</span> states coldly, \"[message]\"</span>",2)
O.show_message("<span class='npcsay'><span class='name'>[src]</span> states coldly, \"[message]\"</span>",2)
/obj/machinery/doppler_array/power_change()
..()

View File

@@ -344,7 +344,7 @@
return
for(var/mob/O in hearers(src, null))
O.show_message("<span class='game say'><span class='name'>\The [src]</span> beeps, \"[message]\"</span>",2)
O.show_message("<span class='npcsay'><span class='name'>\The [src]</span> beeps, \"[message]\"</span>",2)
return
/obj/machinery/casino_prize_dispenser/process() //Might not need this, but just to be safe for now

View File

@@ -737,7 +737,7 @@ GLOBAL_LIST_EMPTY(vending_products)
return
for(var/mob/O in hearers(src, null))
O.show_message("<span class='game say'><span class='name'>\The [src]</span> beeps, \"[message]\"</span>",2)
O.show_message("<span class='npcsay'><span class='name'>\The [src]</span> beeps, \"[message]\"</span>",2)
return
/obj/machinery/vending/power_change()

View File

@@ -38,6 +38,9 @@
raw_msg += (piece + " ")
if(!speaker.client)
piece = "<span class='npcsay'>[piece]</span>"
//HTML formatting
if(!SP.speaking) // Catch the most generic case first
piece = "<span class='message body'>[piece]</span>"

View File

@@ -57,18 +57,18 @@ export const MESSAGE_TYPES = [
important: true,
},
// Basic types
{
type: MESSAGE_TYPE_NPCEMOTE, // Needs to be first
name: 'NPC Emotes / Says',
description: 'In-character emotes and says from NPCs',
selector: '.npcemote, .npcsay',
},
{
type: MESSAGE_TYPE_LOCALCHAT,
name: 'Local',
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)',

View File

@@ -371,6 +371,7 @@ img.icon.bigicon {
.emote,
.emotesubtle,
.npcemote,
.npcsay,
.infoplain,
.oocplain,
.warningplain,

View File

@@ -389,6 +389,7 @@ img.icon.bigicon {
.emote,
.emotesubtle,
.npcemote,
.npcsay,
.infoplain,
.oocplain,
.warningplain,

View File

@@ -371,6 +371,7 @@ img.icon.bigicon {
.emote,
.emotesubtle,
.npcemote,
.npcsay,
.infoplain,
.oocplain,
.warningplain,

View File

@@ -389,6 +389,7 @@ img.icon.bigicon {
.emote,
.emotesubtle,
.npcemote,
.npcsay,
.infoplain,
.oocplain,
.warningplain,