[construction] Craftable Curtains (#15697)

This commit is contained in:
Kit0vras
2023-04-24 05:12:11 +03:00
committed by GitHub
parent 15533c4797
commit a21c4093f7
3 changed files with 61 additions and 1 deletions

View File

@@ -40,6 +40,9 @@
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Construction
graph: Curtains
node: Curtains
- type: Destructible
thresholds:
- trigger:
@@ -52,7 +55,7 @@
spawn:
MaterialCloth1:
min: 1
max: 3
max: 2
placement:
mode: SnapgridCenter
@@ -67,3 +70,6 @@
enabled: false
- type: Physics
canCollide: false
- type: Construction
graph: Curtains
node: CurtainsOpen

View File

@@ -0,0 +1,37 @@
- type: constructionGraph
id: Curtains
start: start
graph:
- node: start
actions:
- !type:DestroyEntity {}
edges:
- to: Curtains
completed:
- !type:SnapToGrid { }
steps:
- material: Cloth
amount: 2
doAfter: 1
- node: Curtains
entity: HospitalCurtains
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- node: CurtainsOpen
entity: HospitalCurtainsOpen
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1

View File

@@ -427,3 +427,20 @@
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
- type: construction
id: Curtains
name: curtains
description: Contains less than 1% mercury.
graph: Curtains
startNode: start
targetNode: Curtains
category: construction-category-furniture
icon:
sprite: Structures/Decoration/curtains.rsi
state: closed
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked