mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 00:51:55 +00:00
Make USB cables attached to locked circuits unable to be modified (#63084)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -355,6 +355,10 @@
|
||||
source.balloon_alert(user, "no circuit inside")
|
||||
return COMSIG_CANCEL_USB_CABLE_ATTACK
|
||||
|
||||
if(attached_circuit.locked)
|
||||
source.balloon_alert(user, "circuit is locked!")
|
||||
return COMSIG_CANCEL_USB_CABLE_ATTACK
|
||||
|
||||
usb_cable.attached_circuit = attached_circuit
|
||||
return COMSIG_USB_CABLE_CONNECTED_TO_CIRCUIT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user