made thin firelocks constructable/deconstructable (#26745)

This commit is contained in:
osjarw
2024-04-06 04:55:31 +03:00
committed by GitHub
parent dd03612d80
commit 107dc0e036
3 changed files with 40 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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