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

This commit is contained in:
John Willard
2022-05-01 23:57:55 -04:00
committed by GitHub
parent 9958653bf8
commit d878800c38

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