From f378e4fb85e5bc9d8b0014d039bbe7d4ce0c1eae Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 8 Oct 2024 14:04:24 +0300 Subject: [PATCH] furnace --- .../Structures/Furniture/workbenchs.yml | 33 +++++++++++++++++- .../_CP14/Recipes/Workbench/furnace.yml | 23 ++++++++++++ .../Furniture/workbench.rsi/furnace.png | Bin 0 -> 412 bytes .../Furniture/workbench.rsi/meta.json | 3 ++ 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml create mode 100644 Resources/Textures/_CP14/Structures/Furniture/workbench.rsi/furnace.png diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml index 6493ca778b..9defd8864b 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml @@ -143,4 +143,35 @@ craftSound: collection: CP14Sawing #TODO recipeTags: - - CP14RecipeAnvil \ No newline at end of file + - CP14RecipeAnvil + +- type: entity + id: CP14WorkbenchFurnace + parent: + - CP14BaseWorkbench + name: melting furnace + description: I feel really bad, please someone fix this. + components: + - type: Sprite + state: furnace + - type: Icon + state: furnace + - type: Damageable + damageContainer: StructuralInorganic + damageModifierSet: StructuralMetallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: CP14Workbench + craftSound: + collection: CP14Sawing #TODO + recipeTags: + - CP14RecipeMeltingFurnace \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml new file mode 100644 index 0000000000..18e25937aa --- /dev/null +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml @@ -0,0 +1,23 @@ +- type: CP14Recipe + id: CP14CopperBar1 + tag: CP14RecipeMeltingFurnace + craftTime: 4 + entities: + CP14OreCopper: 2 + result: CP14CopperBar1 + +- type: CP14Recipe + id: CP14IronBar1 + tag: CP14RecipeMeltingFurnace + craftTime: 4 + entities: + CP14OreIron: 2 + result: CP14IronBar1 + +- type: CP14Recipe + id: CP14GoldBar1 + tag: CP14RecipeMeltingFurnace + craftTime: 4 + entities: + CP14OreGold: 2 + result: CP14GoldBar1 \ No newline at end of file diff --git a/Resources/Textures/_CP14/Structures/Furniture/workbench.rsi/furnace.png b/Resources/Textures/_CP14/Structures/Furniture/workbench.rsi/furnace.png new file mode 100644 index 0000000000000000000000000000000000000000..c05d9e84fe1636b31ef78fa090b41bc3330a2ff9 GIT binary patch literal 412 zcmV;N0b~A&P)Px$R!KxbRA_1Ot~AZ=sl&4dRIJx+fS@mIW#o z)&%P@>VgsO#zIEE#p@vx-XAH|r-=6f8G$;%?m(qKabNF9h3f4lCZ*85+Ju+^NZ8?W|M`?c!~nLs(&CLF7zoXOs_J488=*DC z8?(?&Ou2EXPdfBJaak6qtE3iUN%