mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #4065 from SkyMarshal/patch-4
Ghosts can see PDA messages.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
//The advanced pea-green monochrome lcd of tomorrow.
|
//The advanced pea-green monochrome lcd of tomorrow.
|
||||||
|
|
||||||
var/global/list/obj/item/device/pda/PDAs = list()
|
var/global/list/obj/item/device/pda/PDAs = list()
|
||||||
@@ -826,6 +825,10 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
|
|
||||||
tnote += "<i><b>→ To [P.owner]:</b></i><br>[t]<br>"
|
tnote += "<i><b>→ To [P.owner]:</b></i><br>[t]<br>"
|
||||||
P.tnote += "<i><b>← From <a href='byond://?src=\ref[P];choice=Message;target=\ref[src]'>[owner]</a> ([ownjob]):</b></i><br>[t]<br>"
|
P.tnote += "<i><b>← From <a href='byond://?src=\ref[P];choice=Message;target=\ref[src]'>[owner]</a> ([ownjob]):</b></i><br>[t]<br>"
|
||||||
|
for(var/mob/M in player_list)
|
||||||
|
if(M.stat == DEAD && M.client && (M.client.prefs.toggles & CHAT_GHOSTEARS)) // src.client is so that ghosts don't have to listen to mice
|
||||||
|
M.show_message("<span class='game say'>PDA Message - <span class='name'>[owner]</span> -> <span class='name'>[P.owner]</span>: <span class='message'>[t]</span></span>")
|
||||||
|
|
||||||
|
|
||||||
if (prob(15)) //Give the AI a chance of intercepting the message
|
if (prob(15)) //Give the AI a chance of intercepting the message
|
||||||
var/who = src.owner
|
var/who = src.owner
|
||||||
|
|||||||
Reference in New Issue
Block a user