Subtle PDA indicator (#2243)

## About The Pull Request

Adds a span so that you can tell normal PDA messages from subtle ones.

## Why It's Good For The Game

You can tell between the two messages types.

## Proof Of Testing

<details>
<summary>Screenshots/Videos</summary>


![image](https://github.com/user-attachments/assets/ff4cb897-d982-48b9-ba3d-fb5986c610ea)


![image](https://github.com/user-attachments/assets/a6d1521f-a8cb-4a50-916f-c8023c5831df)

</details>

## Changelog

🆑 LT3
qol: Received subtle PDA messages are labelled subtle in the text log
/🆑
This commit is contained in:
LT3
2024-10-25 11:09:30 -07:00
committed by GitHub
parent 22ca0eacd0
commit ea16fda594
5 changed files with 22 additions and 3 deletions
@@ -665,10 +665,13 @@
to_chat(listener, "[FOLLOW_LINK(listener, source)] [ghost_message]")
// Log to public log
log_public_file(public_message)
// BUBBER EDIT CHANGE END
if(sender)
to_chat(sender, span_info("PDA message sent to [signal.format_target()]: \"[message]\""))
if(subtle)
to_chat(sender, span_subtlepda("Subtle PDA message sent to [signal.format_target()]: \"[message]\""))
else
to_chat(sender, span_info("PDA message sent to [signal.format_target()]: \"[message]\""))
// BUBBER EDIT CHANGE END
if (alert_able && !alert_silenced)
computer.send_sound()
@@ -688,6 +691,7 @@
var/is_fake_user = is_rigged || is_automated || isnull(signal.data["ref"])
var/fake_name = is_fake_user ? signal.data["fakename"] : null
var/fake_job = is_fake_user ? signal.data["fakejob"] : null
var/is_subtle = signal.data["subtle"] // BUBBER EDIT ADDITION - SUBTLE MESSAGES
var/sender_ref = signal.data["ref"]
@@ -739,7 +743,12 @@
var/inbound_message = "[signal.format_message()]"
var/photo_message = signal.data["photo"] ? " (<a href='byond://?src=[REF(src)];choice=[photo_href];skiprefresh=1;target=[REF(chat)]'>Photo Attached</a>)" : ""
to_chat(messaged_mob, span_infoplain("[icon2html(computer, messaged_mob)] <b>PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
// BUBBER EDIT CHANGE BEGIN - SUBTLE MESSAGES
if(is_subtle)
to_chat(messaged_mob, span_subtlepda("[icon2html(computer, messaged_mob)] <b>Subtle PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
else
to_chat(messaged_mob, span_infoplain("[icon2html(computer, messaged_mob)] <b>PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
// BUBBER EDIT CHANGE END - SUBTLE MESSAGES
SEND_SIGNAL(computer, COMSIG_COMPUTER_RECEIVED_MESSAGE, sender_title, inbound_message, photo_message)