From 6d1be412f523560fe8865deaa7e04fff57a98803 Mon Sep 17 00:00:00 2001 From: Lamrr <96937466+Lamrr@users.noreply.github.com> Date: Mon, 7 Feb 2022 12:51:57 +1100 Subject: [PATCH] Adds rack construction (#6502) --- .../Entities/Structures/Storage/storage.yml | 14 ++++----- .../Construction/Graphs/furniture/rack.yml | 30 +++++++++++++++++++ .../Recipes/Construction/furniture.yml | 18 +++++++++++ 3 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/furniture/rack.yml diff --git a/Resources/Prototypes/Entities/Structures/Storage/storage.yml b/Resources/Prototypes/Entities/Structures/Storage/storage.yml index 3bb96a4501..f92ba54d12 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/storage.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/storage.yml @@ -1,20 +1,18 @@ - type: entity + parent: BaseStructure id: Rack name: rack description: A rack for storing things on. - placement: - mode: SnapgridCenter components: - - type: Transform - anchored: true - - type: Clickable + - type: Construction + graph: Rack + node: Rack + - type: Anchorable - type: InteractionOutline - type: PlaceableSurface - type: Sprite sprite: Structures/Furniture/furniture.rsi state: rack - - type: Physics - bodyType: Static - type: Fixtures fixtures: - shape: @@ -25,8 +23,6 @@ - MobImpassable mask: - VaultImpassable - - type: Pullable - - type: Anchorable - type: Damageable damageContainer: Inorganic damageModifierSet: Metallic diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/rack.yml b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/rack.yml new file mode 100644 index 0000000000..428757e5b9 --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/rack.yml @@ -0,0 +1,30 @@ +- type: constructionGraph + id: Rack + start: start + graph: + - node: start + actions: + - !type:DeleteEntity {} + edges: + - to: Rack + completed: + - !type:SnapToGrid + southRotation: true + steps: + - material: Steel + amount: 2 + doAfter: 1 + - node: Rack + entity: Rack + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: SheetSteel1 + amount: 2 + conditions: + - !type:EntityAnchored + anchored: false + steps: + - tool: Screwing + doAfter: 1 diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index 8ebb32697e..3e1ea9cc63 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -307,3 +307,21 @@ canBuildInImpassable: false conditions: - !type:TileNotBlocked + +#racks +- type: construction + id: Rack + name: rack + description: A rack for storing things on. + graph: Rack + startNode: start + targetNode: Rack + category: Furniture + icon: + sprite: Structures/Furniture/furniture.rsi + state: rack + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked