disallow unanchoring or opening panels on locked emitters/APEs (#26600)

* disallow unanchoring or opening panels on locked emitters/APEs

* no locking open panels

* oops

* needback feedback

* Update Content.Shared/Lock/LockSystem.cs

* Update Content.Shared/Lock/LockSystem.cs

* Update Content.Shared/Lock/LockSystem.cs

* sanity

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Nemanja
2024-03-31 02:34:17 -04:00
committed by GitHub
parent d512bc141a
commit 1b69762816
12 changed files with 129 additions and 15 deletions

View File

@@ -3,8 +3,9 @@ lock-comp-on-examined-is-unlocked = The {$entityName} seems to be unlocked.
lock-comp-do-lock-success = You lock the {$entityName}.
lock-comp-do-unlock-success = You unlock the {$entityName}.
lock-comp-has-user-access-fail = Access denied
lock-comp-generic-fail = {CAPITALIZE(SUBJECT($target))} {CONJUGATE-BE($target)} locked.
## ToggleLockVerb
toggle-lock-verb-unlock = Unlock
toggle-lock-verb-lock = Lock
toggle-lock-verb-lock = Lock

View File

@@ -140,6 +140,7 @@
- type: Lock
locked: true
- type: ActivatableUIRequiresLock
- type: LockedWiresPanel
- type: Flashable
- type: Damageable
damageContainer: Silicon

View File

@@ -160,6 +160,7 @@
board: APECircuitboard
- type: Lock
locked: false
- type: LockedWiresPanel
- type: AccessReader
access: [[ "Research" ]]
- type: Emitter
@@ -204,6 +205,7 @@
True: { visible: true }
False: { visible: false }
- type: LockVisuals
- type: LockedAnchorable
- type: DeviceNetwork
deviceNetId: Wireless
receiveFrequencyId: BasicDevice

View File

@@ -84,6 +84,8 @@
- type: Lock
locked: false
- type: LockVisuals
- type: LockedAnchorable
- type: LockedWiresPanel
- type: AccessReader
access: [[ "Engineering" ]]
- type: Machine