Skip to content

Commit

Permalink
Craftable Steel Closet (space-wizards#21987)
Browse files Browse the repository at this point in the history
Make closet craftable
  • Loading branch information
iacore committed Dec 18, 2023
1 parent 6a73aed commit a9fa1f4
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -129,7 +129,7 @@
- type: entity
id: ClosetMaintenance
name: maintenance closet
parent: ClosetBase
parent: ClosetSteelBase
description: It's a storage unit.
components:
- type: Appearance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
- type: entity
id: ClosetCursed
parent: ClosetBase
parent: ClosetSteelBase
name: closet
suffix: cursed
description: A standard-issue Nanotrasen storage unit.
components:
- type: CursedEntityStorage
- type: EntityStorage
closeSound:
path: /Audio/Effects/teleport_arrival.ogg
path: /Audio/Effects/teleport_arrival.ogg
27 changes: 27 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/Graphs/storage/tallbox.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/tallbox.yml
Original file line number Diff line number Diff line change
@@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Resources/Textures/Structures/Storage/closet.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@
{
"name": "generic_open"
},
{
"name": "generic_icon"
},
{
"name": "green_door"
},
Expand Down

0 comments on commit a9fa1f4

Please sign in to comment.