Skip to content

Commit

Permalink
Makes deadchat control's examine only shows up for ghosts (#57926)
Browse files Browse the repository at this point in the history
This PR early returns the on_examine proc for deadchat control if the examiner is not an observer.
So, only ghosts (deadchat) are allowed to see if something is under deadchat control. Humans don't need to know (or shouldn't know) if deadchat is expanding its reach into the physical realm.
  • Loading branch information
MrMelbert committed Mar 24, 2021
1 parent af76a48 commit 3539de2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/datums/components/deadchat_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
/datum/component/deadchat_control/proc/on_examine(atom/A, mob/user, list/examine_list)
SIGNAL_HANDLER

if(!isobserver(user))
return

examine_list += "<span class='notice'>[A.p_theyre(TRUE)] currently under deadchat control using the [deadchat_mode] ruleset!</span>"

if(deadchat_mode == DEMOCRACY_MODE)
Expand Down

0 comments on commit 3539de2

Please sign in to comment.