coffin and two graves (#18213)

This commit is contained in:
Tunguso4ka
2023-07-24 06:13:10 +03:00
committed by GitHub
parent a6742d3577
commit 730285290a
15 changed files with 186 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

View File

@@ -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"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

View File

@@ -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"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -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"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B