Adds metal and wood counters (#7688)
@@ -13,7 +13,7 @@
|
|||||||
fixtures:
|
fixtures:
|
||||||
- shape:
|
- shape:
|
||||||
!type:PhysShapeAabb
|
!type:PhysShapeAabb
|
||||||
bounds: "-0.45,-0.45,0.45,0.45"
|
bounds: "-0.40,-0.30,0.40,0.45"
|
||||||
mass: 50
|
mass: 50
|
||||||
mask:
|
mask:
|
||||||
- Impassable
|
- Impassable
|
||||||
@@ -43,6 +43,96 @@
|
|||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Table
|
graph: Table
|
||||||
node: TableFrame
|
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
|
- type: entity
|
||||||
id: Table
|
id: Table
|
||||||
@@ -380,3 +470,25 @@
|
|||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
- !type:DoActsBehavior
|
||||||
acts: ["Destruction"]
|
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
|
- material: MetalRod
|
||||||
amount: 2
|
amount: 2
|
||||||
doAfter: 1
|
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
|
- node: TableFrame
|
||||||
entity: TableFrame
|
entity: TableFrame
|
||||||
@@ -63,6 +80,39 @@
|
|||||||
amount: 1
|
amount: 1
|
||||||
doAfter: 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
|
- node: Table
|
||||||
entity: Table
|
entity: Table
|
||||||
edges:
|
edges:
|
||||||
@@ -152,3 +202,27 @@
|
|||||||
steps:
|
steps:
|
||||||
- tool: Prying
|
- tool: Prying
|
||||||
doAfter: 1
|
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
|
canBuildInImpassable: false
|
||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked
|
- !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
|
#bathroom
|
||||||
- type: construction
|
- type: construction
|
||||||
|
|||||||
|
After Width: | Height: | Size: 207 B |
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/0b3ab17dbad632ddf738b63900ef8df1926bba47/icons/obj/tables.dmi and modified by Peptide90",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "full"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_0",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_1",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_2",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_3",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_4",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_5",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_6",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_7",
|
||||||
|
"directions": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 461 B |
|
After Width: | Height: | Size: 391 B |
|
After Width: | Height: | Size: 460 B |
|
After Width: | Height: | Size: 385 B |
|
After Width: | Height: | Size: 419 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 211 B |
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Sprite by Peptide based on wooden table",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "full"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_0",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_1",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_2",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_3",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_4",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_5",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_6",
|
||||||
|
"directions": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "state_7",
|
||||||
|
"directions": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 476 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 485 B |
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 289 B |