]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Lockable Suit Storages (#20950)
authorrosieposie <52761126+rosieposieeee@users.noreply.github.com>
Wed, 18 Oct 2023 01:33:02 +0000 (21:33 -0400)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 01:33:02 +0000 (18:33 -0700)
Resources/Prototypes/Catalog/Fills/Lockers/suit_storage.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml
Resources/Textures/Structures/Storage/suit_storage.rsi/base.png
Resources/Textures/Structures/Storage/suit_storage.rsi/closed.png [deleted file]
Resources/Textures/Structures/Storage/suit_storage.rsi/door.png [new file with mode: 0644]
Resources/Textures/Structures/Storage/suit_storage.rsi/locked.png [new file with mode: 0644]
Resources/Textures/Structures/Storage/suit_storage.rsi/meta.json
Resources/Textures/Structures/Storage/suit_storage.rsi/panel.png [new file with mode: 0644]
Resources/Textures/Structures/Storage/suit_storage.rsi/unlocked.png [new file with mode: 0644]
Resources/Textures/Structures/Storage/suit_storage.rsi/welded.png

index 09afc383495f85d42f3dd468d074ec535d421789..7ee7351fbe2d20e8fe713b1f78a82ae9d4205cc1 100644 (file)
@@ -39,7 +39,7 @@
         - id: OxygenTankFilled
         - id: ClothingOuterSuitEmergency
         - id: ClothingMaskBreath
-     
+
 #Prisoner EVA
 - type: entity
   id: SuitStorageEVAPrisoner
@@ -80,7 +80,7 @@
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitPirateEVA
         - id: ClothingMaskGas
-        
+
 #NTSRA Voidsuit
 - type: entity
   id: SuitStorageNTSRA
@@ -93,7 +93,7 @@
         - id: ClothingOuterHardsuitAncientEVA
         - id: ClothingHeadHelmetAncient
         - id: ClothingMaskBreath
-        
+
 #HARDSUITS
 #Basic hardsuit
 - type: entity
         - id: ClothingShoesBootsMag
         - id: ClothingOuterHardsuitEngineering
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [["Engineering"]]
 
 #Atmospherics hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitAtmos
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [["Atmospherics"]]
 
 #Security hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitSecurity
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [["Security"]]
 
 #CE's hardsuit
 - type: entity
         - id: ClothingShoesBootsMagAdv
         - id: ClothingOuterHardsuitEngineeringWhite
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [["ChiefEngineer"]]
 
 #CMO's hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitMedical
         - id: ClothingMaskBreathMedical
+  - type: AccessReader
+    access: [ [ "ChiefMedicalOfficer" ] ]
 
 #RD's hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitRd
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [ [ "ResearchDirector" ] ]
 
 #HOS's hardsuit
 - type: entity
         - id: JetpackSecurityFilled
         - id: ClothingOuterHardsuitSecurityRed
         - id: ClothingMaskGasSwat
+  - type: AccessReader
+    access: [["HeadOfSecurity"]]
 
 #Warden's hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitWarden
         - id: ClothingMaskBreath
+  - type: AccessReader
+    access: [["Armory"]]
 
 #Captain's hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitCap
         - id: ClothingMaskGasCaptain
+  - type: AccessReader
+    access: [["Captain"]]
 
 #Salvage hardsuit
 - type: entity
       - id: ClothingShoesBootsMag
       - id: ClothingOuterHardsuitSpatio
       - id: ClothingMaskGasExplorer
+  - type: AccessReader
+    access: [["Salvage"]]
 
 #Blood-red hardsuit
 - type: entity
         - id: OxygenTankFilled
         - id: ClothingOuterHardsuitWizard
         - id: ClothingMaskBreath
-        
\ No newline at end of file
index f39938fd9550c8d28c9fd57a1ded772bd23ea8d8..5edad73e3377e14d18f7f80efced66c10a2ec4bb 100644 (file)
   name: suit storage unit
   description: A fancy hi-tech storage unit made for storing space suits.
   components:
+  - type: AccessReader
+  - type: Lock
   - type: Anchorable
     delay: 2
   - type: StaticPrice
     sprite: Structures/Storage/suit_storage.rsi
     layers:
     - state: base
-    - state: closed
+    - state: door
       map: ["enum.StorageVisualLayers.Door"]
     - state: welded
       visible: false
       map: ["enum.WeldableLayers.BaseWelded"]
+    - state: locked
+      map: ["enum.StorageVisualLayers.Lock"]
+      shader: unshaded
   - type: MovedByPressure
   - type: DamageOnHighSpeedImpact
     damage:
   - type: Appearance
   - type: EntityStorageVisuals
     stateBase: base
+    stateLocked: locked
+    stateUnlocked: unlocked
     stateDoorOpen: base
-    stateDoorClosed: closed
+    stateDoorClosed: door
index 3a686cd6ecbbf57f16eb4baf430b6c8e21e3c939..5171b03f4611739868635ecb19891a86acf2f1ce 100644 (file)
Binary files a/Resources/Textures/Structures/Storage/suit_storage.rsi/base.png and b/Resources/Textures/Structures/Storage/suit_storage.rsi/base.png differ
diff --git a/Resources/Textures/Structures/Storage/suit_storage.rsi/closed.png b/Resources/Textures/Structures/Storage/suit_storage.rsi/closed.png
deleted file mode 100644 (file)
index 79d0dba..0000000
Binary files a/Resources/Textures/Structures/Storage/suit_storage.rsi/closed.png and /dev/null differ
diff --git a/Resources/Textures/Structures/Storage/suit_storage.rsi/door.png b/Resources/Textures/Structures/Storage/suit_storage.rsi/door.png
new file mode 100644 (file)
index 0000000..e2d18e4
Binary files /dev/null and b/Resources/Textures/Structures/Storage/suit_storage.rsi/door.png differ
diff --git a/Resources/Textures/Structures/Storage/suit_storage.rsi/locked.png b/Resources/Textures/Structures/Storage/suit_storage.rsi/locked.png
new file mode 100644 (file)
index 0000000..40b036a
Binary files /dev/null and b/Resources/Textures/Structures/Storage/suit_storage.rsi/locked.png differ
index aa1c1f09ec74b3b984bc5b4f19fc56298edb0263..c4d4dc3468dffe89168ff1ee096fd13780ac3ffb 100644 (file)
       "name": "base"
     },
     {
-      "name": "closed"
+      "name": "door"
+    },
+    {
+      "name": "unlocked"
+    },
+    {
+      "name": "locked"
+    },
+    {
+      "name": "panel"
     },
     {
       "name": "welded"
diff --git a/Resources/Textures/Structures/Storage/suit_storage.rsi/panel.png b/Resources/Textures/Structures/Storage/suit_storage.rsi/panel.png
new file mode 100644 (file)
index 0000000..7c4ef0d
Binary files /dev/null and b/Resources/Textures/Structures/Storage/suit_storage.rsi/panel.png differ
diff --git a/Resources/Textures/Structures/Storage/suit_storage.rsi/unlocked.png b/Resources/Textures/Structures/Storage/suit_storage.rsi/unlocked.png
new file mode 100644 (file)
index 0000000..cb906e3
Binary files /dev/null and b/Resources/Textures/Structures/Storage/suit_storage.rsi/unlocked.png differ
index 6e9fbacb2ea77316680e1107faf1d7c262f4f1a9..d8e0281ebb1b6a1bd510a22c6958adbd83df9eb3 100644 (file)
Binary files a/Resources/Textures/Structures/Storage/suit_storage.rsi/welded.png and b/Resources/Textures/Structures/Storage/suit_storage.rsi/welded.png differ