diff --git a/Resources/Prototypes/Entities/Structures/Storage/Crates/crates.yml b/Resources/Prototypes/Entities/Structures/Storage/Crates/crates.yml index 375fb692eb..a3d3a4f1d2 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/Crates/crates.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/Crates/crates.yml @@ -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 diff --git a/Resources/Prototypes/Recipes/Crafting/Graphs/storage/cratecoffin.yml b/Resources/Prototypes/Recipes/Crafting/Graphs/storage/cratecoffin.yml new file mode 100644 index 0000000000..54cdb4d29a --- /dev/null +++ b/Resources/Prototypes/Recipes/Crafting/Graphs/storage/cratecoffin.yml @@ -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 diff --git a/Resources/Prototypes/Recipes/Crafting/crates.yml b/Resources/Prototypes/Recipes/Crafting/crates.yml index a4313dfa74..c4980ed95d 100644 --- a/Resources/Prototypes/Recipes/Crafting/crates.yml +++ b/Resources/Prototypes/Recipes/Crafting/crates.yml @@ -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 diff --git a/Resources/Textures/Structures/Storage/Crates/coffin.rsi/base.png b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/base.png new file mode 100644 index 0000000000..c34c72118a Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/base.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/coffin.rsi/closed.png b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/closed.png new file mode 100644 index 0000000000..c34c72118a Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/closed.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/coffin.rsi/meta.json b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/meta.json new file mode 100644 index 0000000000..610ea0183c --- /dev/null +++ b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/meta.json @@ -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" + } + ] +} diff --git a/Resources/Textures/Structures/Storage/Crates/coffin.rsi/open.png b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/open.png new file mode 100644 index 0000000000..15b34d8faa Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/coffin.rsi/open.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/base.png b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/base.png new file mode 100644 index 0000000000..30d83f7224 Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/base.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/closed.png b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/closed.png new file mode 100644 index 0000000000..30d83f7224 Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/closed.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/meta.json b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/meta.json new file mode 100644 index 0000000000..6deb26efe8 --- /dev/null +++ b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/meta.json @@ -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" + } + ] +} diff --git a/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/open.png b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/open.png new file mode 100644 index 0000000000..8c628cffed Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/stone_grave.rsi/open.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/base.png b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/base.png new file mode 100644 index 0000000000..e412a80240 Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/base.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/closed.png b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/closed.png new file mode 100644 index 0000000000..e412a80240 Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/closed.png differ diff --git a/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/meta.json b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/meta.json new file mode 100644 index 0000000000..6deb26efe8 --- /dev/null +++ b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/meta.json @@ -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" + } + ] +} diff --git a/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/open.png b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/open.png new file mode 100644 index 0000000000..7643899c58 Binary files /dev/null and b/Resources/Textures/Structures/Storage/Crates/wooden_grave.rsi/open.png differ