Adds metal and wood counters (#7688)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
bounds: "-0.40,-0.30,0.40,0.45"
|
||||
mass: 50
|
||||
mask:
|
||||
- Impassable
|
||||
@@ -43,6 +43,96 @@
|
||||
- type: Construction
|
||||
graph: Table
|
||||
node: TableFrame
|
||||
|
||||
- type: entity
|
||||
id: CounterWoodFrame
|
||||
parent: BaseStructure
|
||||
name: wooden counter frame
|
||||
description: Pieces of wood that make the frame of a table.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Furniture/Tables/counterwood.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/counterwood.rsi
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
mass: 50
|
||||
mask:
|
||||
- Impassable
|
||||
- SmallImpassable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: IconSmooth
|
||||
key: state
|
||||
base: state_
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 1
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/woodhit.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank1:
|
||||
min: 0
|
||||
max: 1
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: Table
|
||||
node: CounterWoodFrame
|
||||
|
||||
- type: entity
|
||||
id: CounterMetalFrame
|
||||
parent: BaseStructure
|
||||
name: metal counter frame
|
||||
description: Pieces of metal that make the frame of a table.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Furniture/Tables/countermetal.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/countermetal.rsi
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
mass: 50
|
||||
mask:
|
||||
- Impassable
|
||||
- SmallImpassable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: IconSmooth
|
||||
key: state
|
||||
base: state_
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 1
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 0
|
||||
max: 1
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: Table
|
||||
node: CounterMetalFrame
|
||||
|
||||
- type: entity
|
||||
id: Table
|
||||
@@ -380,3 +470,25 @@
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
|
||||
# counters
|
||||
|
||||
- type: entity
|
||||
id: TableCounterWood
|
||||
parent: CounterWoodFrame
|
||||
name: wood counter
|
||||
description: Do not apply fire to this. Rumour says it burns easily.
|
||||
components:
|
||||
- type: Construction
|
||||
graph: Table
|
||||
node: CounterWood
|
||||
|
||||
- type: entity
|
||||
id: TableCounterMetal
|
||||
parent: CounterMetalFrame
|
||||
name: metal counter
|
||||
description: Looks like a good place to put a drink down.
|
||||
components:
|
||||
- type: Construction
|
||||
graph: Table
|
||||
node: CounterMetal
|
||||
@@ -14,6 +14,23 @@
|
||||
- material: MetalRod
|
||||
amount: 2
|
||||
doAfter: 1
|
||||
- to: CounterWoodFrame
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: WoodPlank
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
- to: CounterMetalFrame
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
|
||||
|
||||
- node: TableFrame
|
||||
entity: TableFrame
|
||||
@@ -63,6 +80,39 @@
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
|
||||
|
||||
- node: CounterWoodFrame
|
||||
entity: CounterWoodFrame
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: MaterialWoodPlank1
|
||||
amount: 1
|
||||
steps:
|
||||
- tool: Anchoring
|
||||
doAfter: 1
|
||||
- to: CounterWood
|
||||
steps:
|
||||
- material: WoodPlank
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
|
||||
- node: CounterMetalFrame
|
||||
entity: CounterMetalFrame
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- to: CounterMetal
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
|
||||
|
||||
- node: Table
|
||||
entity: Table
|
||||
edges:
|
||||
@@ -152,3 +202,27 @@
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 1
|
||||
|
||||
- node: CounterMetal
|
||||
entity: TableCounterMetal
|
||||
edges:
|
||||
- to: CounterMetalFrame
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
steps:
|
||||
- tool: Anchoring
|
||||
doAfter: 1
|
||||
|
||||
- node: CounterWood
|
||||
entity: TableCounterWood
|
||||
edges:
|
||||
- to: CounterWoodFrame
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: MaterialWoodPlank1
|
||||
amount: 1
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 1
|
||||
|
||||
@@ -271,6 +271,40 @@
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
name: metal counter
|
||||
id: TableCounterMetal
|
||||
graph: Table
|
||||
startNode: start
|
||||
targetNode: CounterMetal
|
||||
category: Furniture
|
||||
description: Looks like a good place to put a drink down.
|
||||
icon:
|
||||
sprite: Structures/Furniture/Tables/countermetal.rsi
|
||||
state: full
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
name: wood counter
|
||||
id: TableCounterWood
|
||||
graph: Table
|
||||
startNode: start
|
||||
targetNode: CounterWood
|
||||
category: Furniture
|
||||
description: Do not apply fire to this. Rumour says it burns easily.
|
||||
icon:
|
||||
sprite: Structures/Furniture/Tables/counterwood.rsi
|
||||
state: full
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
#bathroom
|
||||
- type: construction
|
||||
|
||||
Reference in New Issue
Block a user