From d1ccca695ba4a11b118b3590de90489d698c4cf8 Mon Sep 17 00:00:00 2001 From: MistakeNot4892 Date: Thu, 2 Jan 2025 00:30:30 +1100 Subject: [PATCH] Implementing skeletal versions of grindstone and bellows. --- code/modules/crafting/forging/bellows.dm | 13 ++++++++++ code/modules/crafting/forging/grindstone.dm | 16 ++++++++++++ code/modules/materials/material_stack_nail.dm | 23 +++++++++--------- icons/obj/structures/forging/bellows.dmi | Bin 842 -> 848 bytes icons/obj/structures/forging/grindstone.dmi | Bin 886 -> 914 bytes nebula.dme | 2 ++ 6 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 code/modules/crafting/forging/bellows.dm create mode 100644 code/modules/crafting/forging/grindstone.dm diff --git a/code/modules/crafting/forging/bellows.dm b/code/modules/crafting/forging/bellows.dm new file mode 100644 index 00000000000..d8a23195d20 --- /dev/null +++ b/code/modules/crafting/forging/bellows.dm @@ -0,0 +1,13 @@ +/obj/structure/working/bellows + name = "bellows" + desc = "An air pump used to improve the heat of a furnace." + icon = 'icons/obj/structures/forging/bellows.dmi' + var/decl/material/bellows_material = /decl/material/solid/organic/leather + +/obj/structure/working/bellows/Initialize() + bellows_material = GET_DECL(bellows_material) + . = ..() + +/obj/structure/working/bellows/on_update_icon() + . = ..() + underlays = list(overlay_image(icon, "[icon_state]-bellows", bellows_material.color, RESET_COLOR)) diff --git a/code/modules/crafting/forging/grindstone.dm b/code/modules/crafting/forging/grindstone.dm new file mode 100644 index 00000000000..1c25de18e84 --- /dev/null +++ b/code/modules/crafting/forging/grindstone.dm @@ -0,0 +1,16 @@ +/obj/structure/working/grindstone + name = "grindstone" + desc = "A rotating section of coarse stone used to polish and sharpen metalwork like blades." + icon = 'icons/obj/structures/forging/grindstone.dmi' + var/decl/material/stone_material = /decl/material/solid/stone/granite + +/obj/structure/working/grindstone/Initialize() + stone_material = GET_DECL(stone_material) + . = ..() + +/obj/structure/working/grindstone/on_update_icon() + . = ..() + underlays = list( + overlay_image(icon, "[icon_state]-grindstone", stone_material.color, RESET_COLOR), + overlay_image(icon, "[initial(icon_state)]-backdrop") + ) diff --git a/code/modules/materials/material_stack_nail.dm b/code/modules/materials/material_stack_nail.dm index a989de40b89..fb0efb77882 100644 --- a/code/modules/materials/material_stack_nail.dm +++ b/code/modules/materials/material_stack_nail.dm @@ -1,15 +1,16 @@ /obj/item/stack/material/nail - name = "nails" - singular_name = "nail" - plural_name = "nails" - icon_state = "nail" - plural_icon_state = "nail-mult" - max_icon_state = "nail-max" - stack_merge_type = /obj/item/stack/material/nail + name = "nails" + singular_name = "nail" + plural_name = "nails" + icon_state = "nail" + plural_icon_state = "nail-mult" + max_icon_state = "nail-max" + stack_merge_type = /obj/item/stack/material/nail crafting_stack_type = /obj/item/stack/material/nail - icon = 'icons/obj/items/stacks/nails.dmi' - is_spawnable_type = TRUE - matter_multiplier = 0.05 // 20 per standard sheet + icon = 'icons/obj/items/stacks/nails.dmi' + is_spawnable_type = TRUE + matter_multiplier = 0.05 // 20 per standard sheet + material = /decl/material/solid/metal/iron /obj/item/stack/material/nail/twelve - amount = 12 + amount = 12 diff --git a/icons/obj/structures/forging/bellows.dmi b/icons/obj/structures/forging/bellows.dmi index bcee8e6440667a1418f86be18ed576ab84d5da05..9e6031422efe43c048341449eab4a39b0e43af16 100644 GIT binary patch delta 104 zcmV-u0GI#D2G9nOQUREeQ%G2;JijO>MTv_uC9|j)$T#HTOe;#vO@**gRp}i|rDIoZ0u)WnNvs43>wqB_XHjZ-W?l*&qwqU`fRV}yu6{1yAOZkgvQ?9+ K{2nv0?Og&iq%67s delta 98 zcmV-o0GpF diff --git a/icons/obj/structures/forging/grindstone.dmi b/icons/obj/structures/forging/grindstone.dmi index c7b0c5fc18a9ab007fb8892909cab3f5b00d0ff6..70b311b63b5c8f68854a03a206211bdc316f508c 100644 GIT binary patch delta 822 zcmV-61IhgM29gJmBrg?EOjJd{z`%-%p2ES&Nk?4&|NmuTcEG^EA{7e200001bW%=J z06^y0W&i*HpOH{Vf2lmbC?`dU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rwlC)U zAb>T?{o=M`!Id(A(ctR4#3QMwr6pox@=M_fIvGWS~Ikrzn zCQxRD&HBOkIkt}_6DXf*!gl?Cl%He!G^BtsdqWU@j(w!?^g>70uygDqg^`hG*g1Bw z{|z^n$j`A4W#cPKBoc{4@`>?&R}&6WCu94f_q!4m+5u6rFM9dGI)tgLQ*Ep$@dBxB zb?JrV&o(J6sd(%c;sr7-z=hWCy`VS|rh6&1vQZG(EtDd07*qoM6N<$f;kqEZU6uP diff --git a/nebula.dme b/nebula.dme index dae5137dd54..8d940eaef24 100644 --- a/nebula.dme +++ b/nebula.dme @@ -2216,6 +2216,7 @@ #include "code\modules\codex\entries\weapons.dm" #include "code\modules\crafting\handmade_fancy.dm" #include "code\modules\crafting\handmade_items.dm" +#include "code\modules\crafting\forging\bellows.dm" #include "code\modules\crafting\forging\forge_anvil.dm" #include "code\modules\crafting\forging\forge_bars.dm" #include "code\modules\crafting\forging\forge_billet.dm" @@ -2223,6 +2224,7 @@ #include "code\modules\crafting\forging\forge_tools.dm" #include "code\modules\crafting\forging\forging_action.dm" #include "code\modules\crafting\forging\forging_step.dm" +#include "code\modules\crafting\forging\grindstone.dm" #include "code\modules\crafting\metalwork\metalwork_items.dm" #include "code\modules\crafting\pottery\pottery_moulds.dm" #include "code\modules\crafting\pottery\pottery_structures.dm"