mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-27 18:42:44 +00:00
Fixes issues with remote air alarm access.
This commit is contained in:
@@ -93,6 +93,6 @@
|
|||||||
/datum/topic_state/air_alarm/href_list(var/mob/user)
|
/datum/topic_state/air_alarm/href_list(var/mob/user)
|
||||||
var/list/extra_href = list()
|
var/list/extra_href = list()
|
||||||
extra_href["remote_connection"] = 1
|
extra_href["remote_connection"] = 1
|
||||||
extra_href["remote_access"] = user && (atmos_control.allowed(user) || atmos_control.emagged || air_alarm.rcon_setting == RCON_YES || (air_alarm.alarm_area.atmosalm && air_alarm.rcon_setting == RCON_AUTO))
|
extra_href["remote_access"] = user && (user.isAI() || atmos_control.allowed(user) || atmos_control.emagged || air_alarm.rcon_setting == RCON_YES || (air_alarm.alarm_area.atmosalm && air_alarm.rcon_setting == RCON_AUTO))
|
||||||
|
|
||||||
return extra_href
|
return extra_href
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ Used In File(s): \code\game\machinery\alarm.dm
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<HR>
|
<HR>
|
||||||
{{if data.locked || (data.remote_connection && ! data.remote_access)}}
|
{{if (data.locked && !data.remote_connection) || (data.remote_connection && ! data.remote_access)}}
|
||||||
{{if data.remote_connection}}
|
{{if data.remote_connection}}
|
||||||
<span class='noticePlaceholder'>(Current remote control settings and alarm status restricts access.)</span>
|
<span class='noticePlaceholder'>(Current remote control settings and alarm status restricts access.)</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
Reference in New Issue
Block a user