Added simple grilles with construction, deconstruction and destruction. (#4801)

This commit is contained in:
Vera Aguilera Puerto
2021-10-09 10:54:56 +02:00
committed by GitHub
parent f635909d4e
commit 09d40b386a
11 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
- type: constructionGraph
id: grille
start: start
graph:
- node: start
edges:
- to: grille
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: MetalRod
amount: 2
doAfter: 1
- node: grille
entity: Grille
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 2
- !type:DeleteEntity
steps:
- tool: Cutting
doAfter: 0.25
- node: grilleBroken
entity: GrilleBroken
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 1
- !type:DeleteEntity
steps:
- tool: Cutting
- to: grille
steps:
- material: MetalRod
amount: 1
doAfter: 0.5

View File

@@ -70,6 +70,23 @@
placementMode: SnapgridCenter
canRotate: false
- type: construction
name: grille
id: Grille
graph: grille
startNode: start
targetNode: grille
category: Structures
description: A flimsy framework of iron rods.
conditions:
- !type:TileNotBlocked
icon:
sprite: Structures/Walls/grille.rsi
state: grille
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
- type: construction
name: window
id: Window