From 425f91b201449c8c4492b522103c09aa1a4ea74f Mon Sep 17 00:00:00 2001 From: BIGZi0348 Date: Sun, 1 Dec 2024 18:49:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D1=8F=D1=81=D0=BD=D0=BE=D0=B9=20=D0=BA?= =?UTF-8?q?=D1=80=D1=8E=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entities/structures/meat_spike.ftl | 2 + .../Entities/Structures/meat_spike.yml | 2 +- .../Recipes/Construction/furniture.yml | 2 +- .../Graphs/furniture/meatspike.yml | 34 +++++++++++ .../_White/Entities/Structures/meat_spike.yml | 57 ++++++++++++++++++ .../White/Structures/meat_spike.rsi/meta.json | 20 ++++++ .../White/Structures/meat_spike.rsi/spike.png | Bin 0 -> 1636 bytes 7 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 Resources/Prototypes/_White/Construction/Graphs/furniture/meatspike.yml create mode 100644 Resources/Prototypes/_White/Entities/Structures/meat_spike.yml create mode 100644 Resources/Textures/White/Structures/meat_spike.rsi/meta.json create mode 100644 Resources/Textures/White/Structures/meat_spike.rsi/spike.png 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 0000000000000000000000000000000000000000..4a7bc6d997a0eca4120ab5ab7180a0d0363f5a19 GIT binary patch literal 1636 zcmbVNX>1f#9G`BsD=w7a86tcbrY1sk&fV?qympK0PVH{v)*c&Kj1gvM-tG?FIh>hx z54=*qKmrjXL4r+*#AriOgAigO#3P1)5~)p;;{%q&NF;&Q4<(8u#y5Kf6eTjroA=(l z-~0XV|7`2)?QZct;>9qmB_0z7(2P4{fd{>0-m#?^=AKoO zDLa*T21vR}iL#!CR8ch$8pAqP7Y$Jwf;OIpSw#yIb4NcXa77LiYXS)-VMJk0iIq(_ zSnf?qXlet_efCFp;xu1JHD# zP@oDvN;k7K%kwD)s6x%Q5SDFVjht@lR!;vH>c;Uc0+4SL ziH3~Z>Y}O*5tiLGg3PEnnq`Zc1mi-O zKsHl~B7+d;gObDr$+mPxBpJrKew ziTS(caSF~!2@q2(6s%IMA_n10wN+lhD_HwZTR{^$Ccl{AGvVq(z`21uWFCY{`6?vV?9j0 zec*tw{KSuEJEpdrT82Go-1oi$_?sWk>>5}nU5!5 zmdf)N{TrJz_ZY8kE?nPrjl_x&sI)K1Lwo-A}OJh*NDhvkj4rL%MAygOHQ_4MS9&R%Zao!A=d z={dP;zto?4#nXNG+6HuT@sH5DAD$oV-)(&Mf@l27`CpfP>U!?Ykx2WTx8L~>#JhTh JkDgjT`WGuoBw7Ff literal 0 HcmV?d00001