Drones can't give themselves access to machines/wires (#66612) (#13270)

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-05-02 13:16:39 +02:00
committed by GitHub
parent 52341b9d02
commit c28f48ca20

View File

@@ -144,6 +144,9 @@
if(!computer || !card_slot || !id_card)
to_chat(current_user, span_notice("No ID found, authorization failed."))
return
if(isdrone(current_user))
to_chat(current_user, span_notice("You can't free yourself."))
return
if(!(ACCESS_CE in id_card.access))
to_chat(current_user, span_notice("Required access not found on ID."))
return