[construction] Craftable Curtains (#15697)
This commit is contained in:
@@ -40,6 +40,9 @@
|
|||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Inorganic
|
damageContainer: Inorganic
|
||||||
damageModifierSet: Wood
|
damageModifierSet: Wood
|
||||||
|
- type: Construction
|
||||||
|
graph: Curtains
|
||||||
|
node: Curtains
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
thresholds:
|
thresholds:
|
||||||
- trigger:
|
- trigger:
|
||||||
@@ -52,7 +55,7 @@
|
|||||||
spawn:
|
spawn:
|
||||||
MaterialCloth1:
|
MaterialCloth1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 3
|
max: 2
|
||||||
placement:
|
placement:
|
||||||
mode: SnapgridCenter
|
mode: SnapgridCenter
|
||||||
|
|
||||||
@@ -67,3 +70,6 @@
|
|||||||
enabled: false
|
enabled: false
|
||||||
- type: Physics
|
- type: Physics
|
||||||
canCollide: false
|
canCollide: false
|
||||||
|
- type: Construction
|
||||||
|
graph: Curtains
|
||||||
|
node: CurtainsOpen
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -427,3 +427,20 @@
|
|||||||
canBuildInImpassable: false
|
canBuildInImpassable: false
|
||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked
|
- !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
|
||||||
|
|||||||
Reference in New Issue
Block a user