Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sofa and reinforced wood table construction #916

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@
sprite: Objects/Tiles/tile.rsi
state: carpet-white

- to: TableWoodReinforced
steps:
- material: WoodPlank
amount: 1
doAfter: 1

- node: TableCarpet
entity: TableCarpet
edges:
Expand Down Expand Up @@ -445,3 +451,15 @@
steps:
- tool: Prying
doAfter: 1

- node: TableWoodReinforced
entity: TableWoodReinforced
edges:
- to: TableWood
completed:
- !type:SpawnPrototype
prototype: MaterialWoodPlank1
amount: 1
steps:
- tool: Prying
doAfter: 1
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# Base benches
- type: entity
name: bench
id: BenchBaseMiddle
id: BenchBase
suffix: Middle
abstract: true
parent: SeatBase
description: Multiple seats spanning a single object. Truly a marvel of science.
placement:
mode: SnapgridCenter
components:
- type: Physics
bodyType: Static
- type: Transform
anchored: true
- type: Rotatable
- type: Sprite
state: middle

# Standard sofa
- type: entity
name: sofa
name: comfy sofa
id: BenchSofaMiddle
parent: BenchBaseMiddle
parent: BenchBase
description: It looks like you could sink right into it.
components:
- type: Sprite
sprite: _DeltaV/Structures/Furniture/Benches/sofa.rsi
- type: Construction
graph: Sofa
node: SofaMiddle

- type: entity
id: BenchSofaLeft
Expand All @@ -31,6 +34,9 @@
components:
- type: Sprite
state: left
- type: Construction
graph: Sofa
node: SofaLeft

- type: entity
id: BenchSofaRight
Expand All @@ -39,47 +45,34 @@
components:
- type: Sprite
state: right
- type: Construction
graph: Sofa
node: SofaRight

- type: entity
name: sofa
id: BenchSofaCorner
suffix: Corner
# parent: BenchSofaMiddle
placement:
mode: SnapgridCenter
parent: BenchSofaMiddle
components:
- type: Transform
anchored: true
- type: Rotatable
- type: Sprite
sprite: _DeltaV/Structures/Furniture/Benches/sofa.rsi
state: corner
- type: Clickable
- type: InteractionOutline
- type: Pullable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- type: Construction
graph: Sofa
node: SofaCorner

# Corp sofa
- type: entity
name: grey sofa
name: corporate sofa
id: BenchSofaCorpMiddle
parent: BenchBaseMiddle
parent: BenchBase
description: It looks like it's going to correct your posture.
components:
- type: Sprite
sprite: _DeltaV/Structures/Furniture/Benches/sofa_corp.rsi
- type: Construction
graph: Sofa
node: SofaCorpMiddle

- type: entity
id: BenchSofaCorpLeft
Expand All @@ -88,6 +81,9 @@
components:
- type: Sprite
state: left
- type: Construction
graph: Sofa
node: SofaCorpLeft

- type: entity
id: BenchSofaCorpRight
Expand All @@ -96,35 +92,18 @@
components:
- type: Sprite
state: right
- type: Construction
graph: Sofa
node: SofaCorpRight

- type: entity
name: grey sofa
id: BenchSofaCorpCorner
suffix: Corner
# parent: BenchSofaCorpMiddle
placement:
mode: SnapgridCenter
parent: BenchSofaCorpMiddle
components:
- type: Transform
anchored: true
- type: Rotatable
- type: Sprite
sprite: _DeltaV/Structures/Furniture/Benches/sofa_corp.rsi
state: corner
- type: Clickable
- type: InteractionOutline
- type: Pullable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
collection: MetalThud
- type: Construction
graph: Sofa
node: SofaCorpCorner
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
- type: constructionGraph
id: Sofa
start: start
graph:
- node: start
actions:
- !type:DestroyEntity {}
edges:
- to: SofaMiddle
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaLeft
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaRight
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaCorner
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaCorpMiddle
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaCorpLeft
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaCorpRight
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2
- to: SofaCorpCorner
steps:
- material: Steel
amount: 2
doAfter: 1
- material: Cloth
amount: 2

- node: SofaMiddle
entity: BenchSofaMiddle
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaLeft
entity: BenchSofaLeft
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaRight
entity: BenchSofaRight
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaCorner
entity: BenchSofaCorner
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaCorpMiddle
entity: BenchSofaCorpMiddle
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaCorpLeft
entity: BenchSofaCorpLeft
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaCorpRight
entity: BenchSofaCorpRight
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1

- node: SofaCorpCorner
entity: BenchSofaCorpCorner
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: MaterialCloth1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1
Loading
Loading