mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 14:33:10 +00:00
Stops people from messing with the arrivals' shuttle control (#9185)
What it says in the title.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
use_power = 1
|
||||
idle_power_usage = 10
|
||||
var/checks_for_access = FALSE
|
||||
|
||||
var/on = 1
|
||||
|
||||
@@ -31,9 +32,17 @@ obj/machinery/embedded_controller/radio/Destroy()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/embedded_controller/attack_ai(mob/user as mob)
|
||||
if(checks_for_access)
|
||||
if(!allowed(user))
|
||||
to_chat(user, SPAN_WARNING("Access Denied."))
|
||||
return
|
||||
src.ui_interact(user)
|
||||
|
||||
/obj/machinery/embedded_controller/attack_hand(mob/user as mob)
|
||||
if(checks_for_access)
|
||||
if(!allowed(user))
|
||||
to_chat(user, SPAN_WARNING("Access Denied."))
|
||||
return
|
||||
|
||||
if(!user.IsAdvancedToolUser())
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user