coffin and two graves (#18213)
@@ -393,3 +393,92 @@
|
||||
- type: Icon
|
||||
sprite: Structures/Storage/Crates/toybox.rsi
|
||||
state: crate_icon
|
||||
|
||||
- type: entity
|
||||
parent: CrateGeneric
|
||||
id: CrateCoffin
|
||||
name: coffin
|
||||
description: A comfy coffin, excelent place for the vampires and corpses.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Storage/Crates/coffin.rsi
|
||||
layers:
|
||||
- state: base
|
||||
- state: closed
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: Icon
|
||||
sprite: Structures/Storage/Crates/coffin.rsi
|
||||
state: base
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 15
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/woodhit.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank1:
|
||||
min: 1
|
||||
max: 4
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: CrateCoffin
|
||||
node: cratecoffin
|
||||
containers:
|
||||
- entity_storage
|
||||
|
||||
- type: entity
|
||||
parent: CrateGeneric
|
||||
id: CrateWoodenGrave
|
||||
name: grave
|
||||
suffix: wooden
|
||||
description: Someone died here...
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Storage/Crates/wooden_grave.rsi
|
||||
layers:
|
||||
- state: base
|
||||
- state: closed
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: Icon
|
||||
sprite: Structures/Storage/Crates/wooden_grave.rsi
|
||||
state: base
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 15
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/woodhit.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank1:
|
||||
min: 1
|
||||
max: 4
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
|
||||
- type: entity
|
||||
parent: CrateWoodenGrave
|
||||
id: CrateStoneGrave
|
||||
name: grave
|
||||
suffix: stone
|
||||
description: Someone died here...
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Storage/Crates/stone_grave.rsi
|
||||
layers:
|
||||
- state: base
|
||||
- state: closed
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: Icon
|
||||
sprite: Structures/Storage/Crates/stone_grave.rsi
|
||||
state: base
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
- type: constructionGraph
|
||||
id: CrateCoffin
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: cratecoffin
|
||||
steps:
|
||||
- material: WoodPlank
|
||||
amount: 5
|
||||
doAfter: 5
|
||||
|
||||
|
||||
- node: cratecoffin
|
||||
entity: CrateCoffin
|
||||
edges:
|
||||
- to: start
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 5
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: MaterialWoodPlank1
|
||||
amount: 5
|
||||
- !type:EmptyAllContainers
|
||||
- !type:DeleteEntity
|
||||
@@ -52,3 +52,14 @@
|
||||
description: A small box for storing things.
|
||||
icon: { sprite: Objects/Storage/boxes.rsi, state: box }
|
||||
objectType: Item
|
||||
|
||||
- type: construction
|
||||
name: coffin
|
||||
id: CrateCoffin
|
||||
graph: CrateCoffin
|
||||
startNode: start
|
||||
targetNode: cratecoffin
|
||||
category: construction-category-storage
|
||||
description: A coffin for storing corpses.
|
||||
icon: { sprite: Structures/Storage/Crates/coffin.rsi, state: base }
|
||||
objectType: Structure
|
||||
|
||||
BIN
Resources/Textures/Structures/Storage/Crates/coffin.rsi/base.png
Normal file
|
After Width: | Height: | Size: 1006 B |
|
After Width: | Height: | Size: 1006 B |
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/32c8d0abc573d7370eb145d8ce74176d59b7eea3",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "base"
|
||||
},
|
||||
{
|
||||
"name": "open"
|
||||
},
|
||||
{
|
||||
"name": "closed"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Structures/Storage/Crates/coffin.rsi/open.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 792 B |
|
After Width: | Height: | Size: 792 B |
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/f796acbaf8ed1651b63b7467e6bbd7cd31639e6a",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "base"
|
||||
},
|
||||
{
|
||||
"name": "open"
|
||||
},
|
||||
{
|
||||
"name": "closed"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 608 B |
|
After Width: | Height: | Size: 608 B |
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/f796acbaf8ed1651b63b7467e6bbd7cd31639e6a",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "base"
|
||||
},
|
||||
{
|
||||
"name": "open"
|
||||
},
|
||||
{
|
||||
"name": "closed"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 837 B |