From 107dc0e0369d43a1f07dcca89dca6c8501f08af1 Mon Sep 17 00:00:00 2001 From: osjarw <62134478+osjarw@users.noreply.github.com> Date: Sat, 6 Apr 2024 04:55:31 +0300 Subject: [PATCH] made thin firelocks constructable/deconstructable (#26745) --- .../Structures/Doors/Firelocks/firelock.yml | 5 ++++- .../Graphs/structures/firelock.yml | 19 +++++++++++++++++++ .../Recipes/Construction/structures.yml | 17 +++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml index a678ab7443..1ba867773b 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml @@ -151,7 +151,7 @@ - type: entity id: FirelockEdge - parent: BaseFirelock + parent: Firelock name: firelock components: - type: Sprite @@ -181,3 +181,6 @@ canCollide: false - type: StaticPrice price: 100 + - type: Construction + graph: Firelock + node: FirelockEdge diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/firelock.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/firelock.yml index 0dbf26794d..0d7bdddd2f 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/structures/firelock.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/firelock.yml @@ -103,6 +103,14 @@ - tool: Anchoring doAfter: 1 + - to: FirelockEdge + conditions: + - !type:EntityAnchored + anchored: true + steps: + - tool: Welding + doAfter: 0.5 + - to: FirelockGlassFrame conditions: - !type:EntityAnchored @@ -160,3 +168,14 @@ steps: - tool: Anchoring doAfter: 1 + + - node: FirelockEdge + entity: FirelockEdge + edges: + - to: frame4 + conditions: + - !type:DoorWelded + welded: true + steps: + - tool: Anchoring + doAfter: 0.25 diff --git a/Resources/Prototypes/Recipes/Construction/structures.yml b/Resources/Prototypes/Recipes/Construction/structures.yml index bea97beaaa..a1f370cc1b 100644 --- a/Resources/Prototypes/Recipes/Construction/structures.yml +++ b/Resources/Prototypes/Recipes/Construction/structures.yml @@ -795,6 +795,23 @@ conditions: - !type:TileNotBlocked +- type: construction + name: Thin firelock + id: FirelockEdge + graph: Firelock + startNode: start + targetNode: FirelockEdge + category: construction-category-structures + description: This is a firelock - it locks an area when a fire alarm in the area is triggered. Don't get squished! + icon: + sprite: Structures/Doors/edge_door_hazard.rsi + state: closed + placementMode: SnapgridCenter + objectType: Structure + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + - type: construction name: shutter id: Shutters -- 2.52.0