fix flipped PDA intercept fields (#7202)

title, fixes #7198
This commit is contained in:
JohnWildkins
2019-10-20 00:22:54 +03:00
committed by Erki
parent 8c9c7174a1
commit 185f8cd644
2 changed files with 46 additions and 5 deletions
+5 -5
View File
@@ -1057,16 +1057,16 @@ var/global/list/obj/item/device/pda/PDAs = list()
if (prob(15)) //Give the AI a chance of intercepting the message
var/who = src.owner
var/who = src.owner // revealing sender
if(prob(50))
who = P.owner
who = P.owner // revealing recipient
for(var/mob/living/silicon/ai/ai in mob_list)
if(ai.aiPDA != P && ai.aiPDA != src)
if(who != P.owner)
ai.show_message("<i>Intercepted message to <b>[who]</b>: [t]</i>")
else
if(who != P.owner) // if not revealing the recipient
ai.show_message("<i>Intercepted message from <b>[who]</b>: [t]</i>")
else // if not revealing the sender
ai.show_message("<i>Intercepted message to <b>[who]</b>: [t]</i>")
P.new_message_from_pda(src, t)
SSnanoui.update_user_uis(U, src) // Update the sending user's PDA UI so that they can see the new message
+41
View File
@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: JohnWildkins
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "AI-intercepted PDA messages now correctly display the recipient or sender."