]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Gave Blast door access permissions (#26606)
authorZealith-Gamer <61980908+Zealith-Gamer@users.noreply.github.com>
Mon, 1 Apr 2024 02:28:14 +0000 (19:28 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Apr 2024 02:28:14 +0000 (13:28 +1100)
Added access reader to all blast doors. Added pre configured blast doors for engineering and science.

Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door.yml
Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door_autolink.yml

index 97f3c1b9e30013897ccd53a0e57ca88060a52483..0700a5a3e7a4d8b9d3ec38a2ded7466db46d62d0 100644 (file)
@@ -4,6 +4,7 @@
   name: blast door
   description: This one says 'BLAST DONGER'.
   components:
+  - type: AccessReader
   - type: Sprite
     sprite: Structures/Doors/Shutters/blastdoor.rsi
     layers:
index 399760616c26c2d155a066bc470693deaa2a142b..3386703ec9038651bc0e221ba82eff1f8972c650 100644 (file)
@@ -56,6 +56,8 @@
   parent: BlastDoor
   suffix: Autolink, Bridge
   components:
+    - type: AccessReader
+      access: [["Command"]]
     - type: AutoLinkReceiver
       channel: Bridge
 
   parent: BlastDoorOpen
   suffix: Open, Autolink, Bridge
   components:
+    - type: AccessReader
+      access: [["Command"]]
     - type: AutoLinkReceiver
       channel: Bridge
 
+- type: entity
+  id: BlastDoorEngineering
+  parent: BlastDoor
+  suffix: Autolink, Engineering
+  components:
+  - type: AccessReader
+    access: [["Command"], ["Engineering"]]
+  - type: AutoLinkReceiver
+    channel: Engineering
+
+- type: entity
+  id: BlastDoorEngineeringOpen
+  parent: BlastDoorOpen
+  suffix: Open, Autolink, Engineering
+  components:
+  - type: AccessReader
+    access: [["Command"], ["Engineering"]]
+  - type: AutoLinkReceiver
+    channel: Engineering
+
+- type: entity
+  id: BlastDoorScience
+  parent: BlastDoor
+  suffix: Autolink, Science
+  components:
+  - type: AccessReader
+    access: [["Command"], ["Research"]]
+  - type: AutoLinkReceiver
+    channel: Research
+
+- type: entity
+  id: BlastDoorScienceOpen
+  parent: BlastDoorOpen
+  suffix: Open, Autolink, Science
+  components:
+  - type: AccessReader
+    access: [["Command"], ["Research"]]
+  - type: AutoLinkReceiver
+    channel: Research
+
 - type: entity
   id: BlastDoorWindows
   parent: BlastDoor