Skip to content

Commit

Permalink
Adds an access check for CL evac pod. (#6318)
Browse files Browse the repository at this point in the history
# About the pull request
As title, evac pod consoles now check for correct access.

# Explain why it's good for the game
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
add: Added access check for use of escape pod consoles, and access
requirement on the CLs pod.
/:cl:
  • Loading branch information
realforest2001 authored May 24, 2024
1 parent e15d83d commit 0575c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/shuttle/computers/escape_pod_computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/obj/structure/machinery/computer/shuttle/escape_pod_panel/attack_hand(mob/user)
if(..())
return
if(!allowed(user))
to_chat(user, SPAN_WARNING("Access denied!"))
return
tgui_interact(user)

/obj/structure/machinery/computer/shuttle/escape_pod_panel/tgui_interact(mob/user, datum/tgui/ui)
Expand Down Expand Up @@ -86,6 +89,7 @@
. = TRUE

/obj/structure/machinery/computer/shuttle/escape_pod_panel/liaison
req_access = list(ACCESS_WY_GENERAL)
launch_without_evac = TRUE

//=========================================================================================
Expand Down

0 comments on commit 0575c6c

Please sign in to comment.