]> git.smokeofanarchy.ru Git - space-station-14.git/commit
prevent borgs unlocking eachother and robotics console (#27888)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Thu, 25 Jul 2024 03:54:51 +0000 (03:54 +0000)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 03:54:51 +0000 (13:54 +1000)
commit8f6326c3e0b04af30171d2435962b89105d67f31
tree82612ef5288149ff40369bf14a2317e531f53eb7
parentb6811d35703ab14b3748bbaf9c29fd4cfe97e680
prevent borgs unlocking eachother and robotics console (#27888)

* prevent borgs from using locks

* e

* bru

* a

* blacklist borgs and robotics console

* frogro

* add IsAllowed to EntityWhitelistSystem

* use IsAllowed

* move thing to new LockingWhitelistSystem

* :trollface:

* review

* use renamed CheckBoth in locking whitelist

* remove unused stuff and add more to doc

* Use target entity instead to remove self check

* Rename to _whitelistSystem

* Add deny lock toggle popup

* Prevent duplicate checks and popups

* Fix wrong entity in popup when toggling another borg

* Make new event

* Update comment to user for new event

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Content.Shared/Lock/LockComponent.cs
Content.Shared/Lock/LockSystem.cs
Content.Shared/Lock/LockingWhitelistComponent.cs [new file with mode: 0644]
Content.Shared/Lock/LockingWhitelistSystem.cs [new file with mode: 0644]
Content.Shared/Whitelist/EntityWhitelistSystem.cs
Resources/Locale/en-US/lock/locking-whitelist-component.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml