[construction] Craftable Curtains (#15697)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user