diff --git a/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/structures/meat_spike.ftl b/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/structures/meat_spike.ftl index b268aaa587..6224668ea6 100644 --- a/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/structures/meat_spike.ftl +++ b/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/structures/meat_spike.ftl @@ -1,2 +1,4 @@ ent-KitchenSpike = мясной крюк .desc = Крюк для снятия мяса с животных. +ent-KitchenSpikeFrame = каркас мясного крюка + .desc = Незаконченный мясной крюк, требуется ещё немного терпения. diff --git a/Resources/Prototypes/Entities/Structures/meat_spike.yml b/Resources/Prototypes/Entities/Structures/meat_spike.yml index 16aa0f4210..b319e13af7 100644 --- a/Resources/Prototypes/Entities/Structures/meat_spike.yml +++ b/Resources/Prototypes/Entities/Structures/meat_spike.yml @@ -52,7 +52,7 @@ Empty: { state: spike } Bloody: { state: spikebloody } - type: Construction - graph: MeatSpike + graph: MeatSpikeWD # WD Edit node: MeatSpike - type: GuideHelp guides: diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index df21266e11..acea2d8b05 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -1017,7 +1017,7 @@ id: KitchenSpike name: meat spike description: A spike found in kitchens butchering animals. - graph: MeatSpike + graph: MeatSpikeWD # WD Edit startNode: start targetNode: MeatSpike category: construction-category-furniture diff --git a/Resources/Prototypes/_White/Construction/Graphs/furniture/meatspike.yml b/Resources/Prototypes/_White/Construction/Graphs/furniture/meatspike.yml new file mode 100644 index 0000000000..d050946f52 --- /dev/null +++ b/Resources/Prototypes/_White/Construction/Graphs/furniture/meatspike.yml @@ -0,0 +1,34 @@ +- type: constructionGraph + id: MeatSpikeWD + start: start + graph: + - node: start + actions: + - !type:DeleteEntity {} + edges: + - to: middle + completed: + - !type:SnapToGrid + southRotation: true + steps: + - material: Steel + amount: 15 + doAfter: 5 + - node: middle + entity: KitchenSpikeFrame + edges: + - to: MeatSpike + steps: + - tool: Welding + doAfter: 3 + - node: MeatSpike + entity: KitchenSpike + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: SheetSteel1 + amount: 15 + steps: + - tool: Screwing + doAfter: 5 diff --git a/Resources/Prototypes/_White/Entities/Structures/meat_spike.yml b/Resources/Prototypes/_White/Entities/Structures/meat_spike.yml new file mode 100644 index 0000000000..fd29b18d43 --- /dev/null +++ b/Resources/Prototypes/_White/Entities/Structures/meat_spike.yml @@ -0,0 +1,57 @@ +- type: entity + id: KitchenSpikeFrame + parent: BaseStructure + name: meat spike frame + description: Unfinished meat hook, needs a little more patience. + components: + - type: InteractionOutline + - type: Sprite + sprite: White/Structures/meat_spike.rsi + state: spike + layers: + - state: spike + map: ["base"] + - type: Damageable + damageContainer: StructuralInorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 200 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + params: + volume: -4 + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 1 + - type: Transform + noRot: true + - type: Anchorable + - type: Pullable + - type: Appearance + - type: GenericVisualizer + visuals: + enum.KitchenSpikeVisuals.Status: + base: + Empty: { state: spike } + Bloody: { state: spikebloody } + - type: Construction + graph: MeatSpikeWD + node: middle + - type: GuideHelp + guides: + - Chef diff --git a/Resources/Textures/White/Structures/meat_spike.rsi/meta.json b/Resources/Textures/White/Structures/meat_spike.rsi/meta.json new file mode 100644 index 0000000000..90b32a6907 --- /dev/null +++ b/Resources/Textures/White/Structures/meat_spike.rsi/meta.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/2b969adc2dfd3e9621bf3597c5cbffeb3ac8c9f0/icons/obj/kitchen.dmi", + "states": [ + { + "name": "spike", + "directions": 1, + "delays": [ + [ + 1.0 + ] + ] + } + ] +} diff --git a/Resources/Textures/White/Structures/meat_spike.rsi/spike.png b/Resources/Textures/White/Structures/meat_spike.rsi/spike.png new file mode 100644 index 0000000000..4a7bc6d997 Binary files /dev/null and b/Resources/Textures/White/Structures/meat_spike.rsi/spike.png differ