From f67b797187a6a8e6e297fc89af4a80aa951d2b1a Mon Sep 17 00:00:00 2001
From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Date: Tue, 12 Dec 2023 15:26:33 -0500
Subject: [PATCH] fixes lavaproof rods, adds to rnd (#23388)
* fixes lavaproof rods, adds to rnd
* Update code/game/turfs/simulated/floor/lava.dm
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
* moves return
* returns early
* Update code/game/turfs/simulated/floor/lava.dm
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
* Update code/game/turfs/simulated/floor/lava.dm
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
---------
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
---
code/game/turfs/simulated/floor/lava.dm | 14 +++++++++++++-
code/modules/research/designs/mining_designs.dm | 10 ++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/code/game/turfs/simulated/floor/lava.dm b/code/game/turfs/simulated/floor/lava.dm
index 79adfa0460c..f43e36b6f81 100644
--- a/code/game/turfs/simulated/floor/lava.dm
+++ b/code/game/turfs/simulated/floor/lava.dm
@@ -121,8 +121,20 @@
new /obj/structure/lattice/lava(locate(x, y, z))
else
to_chat(user, "You need one rod to build a heatproof lattice.")
+ return
+ if(istype(C, /obj/item/stack/tile/plasteel))
+ var/obj/structure/lattice/L = locate(/obj/structure/lattice/lava, src)
+ if(!L)
+ to_chat(user, "The plating is going to need some support! Place metal rods first.")
return
-
+ var/obj/item/stack/tile/plasteel/S = C
+ if(S.use(1))
+ qdel(L)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ to_chat(user, "You build a floor.")
+ ChangeTurf(/turf/simulated/floor/plating, keep_icon = FALSE)
+ else
+ to_chat(user, "You need one floor tile to build a floor!")
/turf/simulated/floor/plating/lava/screwdriver_act()
return
diff --git a/code/modules/research/designs/mining_designs.dm b/code/modules/research/designs/mining_designs.dm
index 1fa33e6d27b..3b4e5a1c1cb 100644
--- a/code/modules/research/designs/mining_designs.dm
+++ b/code/modules/research/designs/mining_designs.dm
@@ -110,3 +110,13 @@
materials = list(MAT_METAL = 8000, MAT_GLASS = 1500, MAT_SILVER = 2000, MAT_GOLD = 2000, MAT_DIAMOND = 2000)
build_path = /obj/item/borg/upgrade/modkit/aoe/turfs
category = list("Mining", "Cyborg Upgrade Modules")
+
+/datum/design/lavarods
+ name = "Lava-Resistant Iron Rods"
+ desc = "Treated, specialized iron rods. When exposed to the vacuum of space their coating breaks off, but they can hold up against the extreme heat of molten liquids."
+ id = "lavarod"
+ req_tech = list("materials" = 7, "engineering" = 5)
+ build_type = PROTOLATHE
+ materials = list(MAT_METAL = 1000, MAT_PLASMA = 1000, MAT_TITANIUM = 1000)
+ build_path = /obj/item/stack/rods/lava
+ category = list("Mining")