mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
Drones can't give themselves access to machines/wires (#66612)
This commit is contained in:
@@ -144,6 +144,9 @@
|
|||||||
if(!computer || !card_slot || !id_card)
|
if(!computer || !card_slot || !id_card)
|
||||||
to_chat(current_user, span_notice("No ID found, authorization failed."))
|
to_chat(current_user, span_notice("No ID found, authorization failed."))
|
||||||
return
|
return
|
||||||
|
if(isdrone(current_user))
|
||||||
|
to_chat(current_user, span_notice("You can't free yourself."))
|
||||||
|
return
|
||||||
if(!(ACCESS_CE in id_card.access))
|
if(!(ACCESS_CE in id_card.access))
|
||||||
to_chat(current_user, span_notice("Required access not found on ID."))
|
to_chat(current_user, span_notice("Required access not found on ID."))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user