mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Npc say filter (#7648)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
..()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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>"
|
||||
|
||||
@@ -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)',
|
||||
|
||||
@@ -371,6 +371,7 @@ img.icon.bigicon {
|
||||
.emote,
|
||||
.emotesubtle,
|
||||
.npcemote,
|
||||
.npcsay,
|
||||
.infoplain,
|
||||
.oocplain,
|
||||
.warningplain,
|
||||
|
||||
@@ -389,6 +389,7 @@ img.icon.bigicon {
|
||||
.emote,
|
||||
.emotesubtle,
|
||||
.npcemote,
|
||||
.npcsay,
|
||||
.infoplain,
|
||||
.oocplain,
|
||||
.warningplain,
|
||||
|
||||
@@ -371,6 +371,7 @@ img.icon.bigicon {
|
||||
.emote,
|
||||
.emotesubtle,
|
||||
.npcemote,
|
||||
.npcsay,
|
||||
.infoplain,
|
||||
.oocplain,
|
||||
.warningplain,
|
||||
|
||||
@@ -389,6 +389,7 @@ img.icon.bigicon {
|
||||
.emote,
|
||||
.emotesubtle,
|
||||
.npcemote,
|
||||
.npcsay,
|
||||
.infoplain,
|
||||
.oocplain,
|
||||
.warningplain,
|
||||
|
||||
Reference in New Issue
Block a user