mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #8331 from PsiOmegaDelta/PDATrack
The AI now have the ability to track senders of PDA messages.
This commit is contained in:
@@ -1067,6 +1067,17 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
new_message = 1
|
new_message = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
/obj/item/device/pda/ai/new_message(var/atom/movable/sending_unit, var/sender, var/sender_job, var/message)
|
||||||
|
var/track = ""
|
||||||
|
if(ismob(sending_unit.loc) && isAI(loc))
|
||||||
|
track = "(<a href='byond://?src=\ref[loc];track=\ref[sending_unit.loc];trackname=[html_encode(sender)]'>Follow</a>)"
|
||||||
|
|
||||||
|
var/reception_message = "\icon[src] <b>Message from [sender] ([sender_job]), </b>\"[message]\" (<a href='byond://?src=\ref[src];choice=Message;notap=1;skiprefresh=1;target=\ref[sending_unit]'>Reply</a>) [track]"
|
||||||
|
new_info(message_silent, newstone, reception_message)
|
||||||
|
|
||||||
|
log_pda("[usr] (PDA: [sending_unit]) sent \"[message]\" to [name]")
|
||||||
|
new_message = 1
|
||||||
|
|
||||||
/obj/item/device/pda/verb/verb_remove_id()
|
/obj/item/device/pda/verb/verb_remove_id()
|
||||||
set category = "Object"
|
set category = "Object"
|
||||||
set name = "Remove id"
|
set name = "Remove id"
|
||||||
|
|||||||
Reference in New Issue
Block a user