]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Craftable Steel Closet (#21987)
authoriacore <74560659+iacore@users.noreply.github.com>
Mon, 18 Dec 2023 19:46:16 +0000 (19:46 +0000)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2023 19:46:16 +0000 (14:46 -0500)
Make closet craftable

Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/cursed.yml
Resources/Prototypes/Recipes/Crafting/Graphs/storage/tallbox.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Crafting/tallbox.yml [new file with mode: 0644]
Resources/Textures/Structures/Storage/closet.rsi/generic_icon.png [new file with mode: 0644]
Resources/Textures/Structures/Storage/closet.rsi/meta.json

index cf1482b8af6e1eac6beddd6c2b3e86a42f421547..bb656367166949ea9c8e0de191edb631bf5ba871 100644 (file)
     stateDoorOpen: generic_open
     stateDoorClosed: generic_door
 
+# steel closet base (that can be constructed/deconstructed)
+- type: entity
+  id: ClosetSteelBase
+  parent: ClosetBase
+  components:
+  - type: Construction
+    graph: ClosetSteel
+    node: done
+    containers:
+    - entity_storage
+
 #Wall Closet
 - type: entity
   id: BaseWallCloset
index d734d61832184cde70dfa8c1bcc4809b0aad8c1a..d5d74c973ae5abaa25d44920c0c8982f6d30c6bf 100644 (file)
@@ -2,7 +2,7 @@
 - type: entity
   id: ClosetTool
   name: tool closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: It's a storage unit for tools.
   components:
   - type: Appearance
@@ -15,7 +15,7 @@
 - type: entity
   id: ClosetRadiationSuit
   name: radiation suit closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: "More comfortable than radiation poisioning."
   components:
   - type: Appearance
@@ -28,7 +28,7 @@
 - type: entity
   id: ClosetEmergency
   name: emergency closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: It's a storage unit for emergency breath masks and O2 tanks.
   components:
   - type: Appearance
@@ -41,7 +41,7 @@
 - type: entity
   id: ClosetFire
   name: fire-safety closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: It's a storage unit for fire-fighting supplies.
   components:
   - type: Appearance
@@ -54,7 +54,7 @@
 - type: entity
   id: ClosetBomb
   name: EOD closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: It's a storage unit for explosion-protective suits.
   components:
   - type: Appearance
@@ -82,7 +82,7 @@
 # Base level 3 bio hazard closet
 - type: entity
   id: ClosetL3
-  parent: ClosetBase
+  parent: ClosetSteelBase
   name: level 3 biohazard gear closet
   description: It's a storage unit for level 3 biohazard gear.
   components:
 - type: entity
   id: ClosetMaintenance
   name: maintenance closet
-  parent: ClosetBase
+  parent: ClosetSteelBase
   description: It's a storage unit.
   components:
   - type: Appearance
index 35fd16bac478f9198f65fb1446a9c1d70dc99f8a..39912d5deb2a9b7ad41bb0c6d0a8f52e6363940b 100644 (file)
@@ -1,6 +1,6 @@
 - type: entity
   id: ClosetCursed
-  parent: ClosetBase
+  parent: ClosetSteelBase
   name: closet
   suffix: cursed
   description: A standard-issue Nanotrasen storage unit.
@@ -8,4 +8,4 @@
   - type: CursedEntityStorage
   - type: EntityStorage
     closeSound:
-      path: /Audio/Effects/teleport_arrival.ogg
\ No newline at end of file
+      path: /Audio/Effects/teleport_arrival.ogg
diff --git a/Resources/Prototypes/Recipes/Crafting/Graphs/storage/tallbox.yml b/Resources/Prototypes/Recipes/Crafting/Graphs/storage/tallbox.yml
new file mode 100644 (file)
index 0000000..5b0cc1f
--- /dev/null
@@ -0,0 +1,27 @@
+- type: constructionGraph
+  id: ClosetSteel
+  start: start
+  graph:
+  - node: start
+    edges:
+    - to: done
+      steps:
+      - material: Steel
+        amount: 4
+        doAfter: 5
+  - node: done
+    entity: ClosetSteelBase
+    edges:
+    - to: start
+      steps:
+      - tool: Screwing
+        doAfter: 5
+      conditions:
+      - !type:StorageWelded
+        welded: false
+      completed:
+      - !type:SpawnPrototype
+        prototype: SheetSteel1
+        amount: 4
+      - !type:EmptyAllContainers
+      - !type:DeleteEntity
diff --git a/Resources/Prototypes/Recipes/Crafting/tallbox.yml b/Resources/Prototypes/Recipes/Crafting/tallbox.yml
new file mode 100644 (file)
index 0000000..0946909
--- /dev/null
@@ -0,0 +1,10 @@
+- type: construction
+  id: ClosetSteel
+  name: closet
+  graph: ClosetSteel
+  startNode: start
+  targetNode: done
+  category: construction-category-storage
+  description: A tall steel box that cannot be locked.
+  icon: { sprite: Structures/Storage/closet.rsi, state: generic_icon }
+  objectType: Structure
diff --git a/Resources/Textures/Structures/Storage/closet.rsi/generic_icon.png b/Resources/Textures/Structures/Storage/closet.rsi/generic_icon.png
new file mode 100644 (file)
index 0000000..2487eae
Binary files /dev/null and b/Resources/Textures/Structures/Storage/closet.rsi/generic_icon.png differ
index 80c3273c6c715575c904d47d4e312fc1549be86e..98bbe8085a258430e94067c112891a1432b50e35 100644 (file)
     {
       "name": "generic_open"
     },
+    {
+      "name": "generic_icon"
+    },
     {
       "name": "green_door"
     },