From dcfd8f7214e0dc3d7f589e2306add3464f2e6860 Mon Sep 17 00:00:00 2001 From: Geeves Date: Fri, 20 Aug 2021 00:18:15 +0200 Subject: [PATCH] Cloth Synths (#12307) --- code/game/objects/items/stacks/matter_synth.dm | 3 +++ code/modules/materials/material_synth.dm | 4 ++++ .../mob/living/silicon/robot/robot_modules.dm | 18 ++++++++++++++++++ html/changelogs/geeves-cloth_synths.yml | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 html/changelogs/geeves-cloth_synths.yml diff --git a/code/game/objects/items/stacks/matter_synth.dm b/code/game/objects/items/stacks/matter_synth.dm index b18cd330aca..972bfc68961 100644 --- a/code/game/objects/items/stacks/matter_synth.dm +++ b/code/game/objects/items/stacks/matter_synth.dm @@ -55,6 +55,9 @@ /datum/matter_synth/plastic name = "Plastic Synthesizer" +/datum/matter_synth/cloth + name = "Cloth Synthesizer" + /datum/matter_synth/wire name = "Wire Synthesizer" max_energy = 50 diff --git a/code/modules/materials/material_synth.dm b/code/modules/materials/material_synth.dm index fdace5a2769..b67b39fd209 100644 --- a/code/modules/materials/material_synth.dm +++ b/code/modules/materials/material_synth.dm @@ -31,6 +31,10 @@ icon_state = "sheet-wood" default_type = MATERIAL_WOOD +/obj/item/stack/material/cyborg/cloth + icon_state = "sheet-cloth" + default_type = MATERIAL_CLOTH + /obj/item/stack/material/cyborg/glass desc_info = "Use in your hand to build a window. Can be upgraded to reinforced glass by adding metal rods, which are made from metal sheets.
\ As a synthetic, you can acquire more sheets of glass by recharging." diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index b2d3ceca219..cc0f9b70ea9 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -395,10 +395,12 @@ var/global/list/robot_modules = list( var/datum/matter_synth/plasteel = new /datum/matter_synth/plasteel(40000) var/datum/matter_synth/glass = new /datum/matter_synth/glass(60000) var/datum/matter_synth/wire = new /datum/matter_synth/wire(60) + var/datum/matter_synth/cloth = new /datum/matter_synth/cloth(50000) synths += metal synths += plasteel synths += glass synths += wire + synths += cloth var/obj/item/stack/material/cyborg/steel/M = new /obj/item/stack/material/cyborg/steel(src) M.synths = list(metal) @@ -416,6 +418,10 @@ var/global/list/robot_modules = list( RG.synths = list(metal, glass) src.modules += RG + var/obj/item/stack/material/cyborg/cloth/CL = new /obj/item/stack/material/cyborg/cloth(src) + CL.synths = list(cloth) + src.modules += CL + var/obj/item/stack/tile/floor/cyborg/FT = new /obj/item/stack/tile/floor/cyborg(src) // to add floor over the metal rods lattice FT.synths = list(metal) src.modules += FT @@ -455,12 +461,14 @@ var/global/list/robot_modules = list( var/datum/matter_synth/wire = new /datum/matter_synth/wire(45) var/datum/matter_synth/wood = new /datum/matter_synth/wood(20000) var/datum/matter_synth/plastic = new /datum/matter_synth/plastic(15000) + var/datum/matter_synth/cloth = new /datum/matter_synth/cloth(50000) synths += metal synths += glass synths += plasteel synths += wire synths += wood synths += plastic + synths += cloth var/obj/item/matter_decompiler/MD = new /obj/item/matter_decompiler(src) MD.metal = metal @@ -503,6 +511,10 @@ var/global/list/robot_modules = list( PS.synths = list(plastic) src.modules += PS + var/obj/item/stack/material/cyborg/cloth/CL = new /obj/item/stack/material/cyborg/cloth(src) + CL.synths = list(cloth) + src.modules += CL + var/obj/item/stack/tile/wood/cyborg/FWT = new /obj/item/stack/tile/wood/cyborg(src) FWT.synths = list(wood) src.modules += FWT @@ -901,11 +913,13 @@ var/global/list/robot_modules = list( var/datum/matter_synth/wood = new /datum/matter_synth/wood(10000) var/datum/matter_synth/plastic = new /datum/matter_synth/plastic(10000) var/datum/matter_synth/wire = new /datum/matter_synth/wire(30) + var/datum/matter_synth/cloth = new /datum/matter_synth/cloth(30000) synths += metal synths += glass synths += wood synths += plastic synths += wire + synths += cloth var/obj/item/matter_decompiler/MD = new /obj/item/matter_decompiler(src) MD.metal = metal @@ -950,6 +964,10 @@ var/global/list/robot_modules = list( P.synths = list(plastic) src.modules += P + var/obj/item/stack/material/cyborg/cloth/CL = new /obj/item/stack/material/cyborg/cloth(src) + CL.synths = list(cloth) + src.modules += CL + /obj/item/robot_module/drone/construction name = "construction drone module" channels = list(CHANNEL_ENGINEERING = TRUE) diff --git a/html/changelogs/geeves-cloth_synths.yml b/html/changelogs/geeves-cloth_synths.yml new file mode 100644 index 00000000000..74dc07bd8b0 --- /dev/null +++ b/html/changelogs/geeves-cloth_synths.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - rscadd: "Engineering borgs and drones can now synthesize cloth." \ No newline at end of file