Skip to content

Commit

Permalink
Merge pull request #916 from Darkmajia/sofa-table-construction
Browse files Browse the repository at this point in the history
sofa and reinforced wood table construction
  • Loading branch information
starlighthowls authored Dec 6, 2024
2 parents 85760bf + 716ad58 commit b951609
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 57 deletions.
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

0 comments on commit b951609

Please sign in to comment.