mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
refactors radios to use proximity (#25303)
* refactors radios to use proximity * Apply suggestions from code review Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -1048,6 +1048,9 @@
|
||||
|
||||
if("ghost_radio")
|
||||
toggles ^= PREFTOGGLE_CHAT_GHOSTRADIO
|
||||
if(isobserver(user))
|
||||
var/mob/dead/observer/dead_dude = user
|
||||
dead_dude.update_dead_radio()
|
||||
|
||||
if("ghost_pda")
|
||||
toggles ^= PREFTOGGLE_CHAT_GHOSTPDA
|
||||
|
||||
@@ -73,6 +73,12 @@
|
||||
disable_message = "As a ghost, you will now hear all radio chat in the world."
|
||||
blackbox_message = "Toggle GhostRadio"
|
||||
|
||||
/datum/preference_toggle/toggle_ghost_radio/set_toggles(client/user)
|
||||
. = ..()
|
||||
if(isobserver(user.mob))
|
||||
var/mob/dead/observer/dead_dude = user.mob
|
||||
dead_dude.update_dead_radio()
|
||||
|
||||
/datum/preference_toggle/toggle_admin_radio
|
||||
name = "Admin Radio"
|
||||
description = "Toggle seeing radiochatter from radios and speakers"
|
||||
|
||||
Reference in New Issue
Block a user