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 - type: entity
id: FirelockEdge id: FirelockEdge
parent: BaseFirelock parent: Firelock
name: firelock name: firelock
components: components:
- type: Sprite - type: Sprite
@@ -181,3 +181,6 @@
canCollide: false canCollide: false
- type: StaticPrice - type: StaticPrice
price: 100 price: 100
- type: Construction
graph: Firelock
node: FirelockEdge

View File

@@ -103,6 +103,14 @@
- tool: Anchoring - tool: Anchoring
doAfter: 1 doAfter: 1
- to: FirelockEdge
conditions:
- !type:EntityAnchored
anchored: true
steps:
- tool: Welding
doAfter: 0.5
- to: FirelockGlassFrame - to: FirelockGlassFrame
conditions: conditions:
- !type:EntityAnchored - !type:EntityAnchored
@@ -160,3 +168,14 @@
steps: steps:
- tool: Anchoring - tool: Anchoring
doAfter: 1 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: conditions:
- !type:TileNotBlocked - !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 - type: construction
name: shutter name: shutter
id: Shutters id: Shutters