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>
This commit is contained in:
Qwertytoforty
2023-12-12 20:26:33 +00:00
committed by GitHub
co-authored by DGamerL
parent 42d25fea27
commit f67b797187
2 changed files with 23 additions and 1 deletions
+13 -1
View File
@@ -121,8 +121,20 @@
new /obj/structure/lattice/lava(locate(x, y, z))
else
to_chat(user, "<span class='warning'>You need one rod to build a heatproof lattice.</span>")
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, "<span class='warning'>The plating is going to need some support! Place metal rods first.</span>")
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, "<span class='notice'>You build a floor.</span>")
ChangeTurf(/turf/simulated/floor/plating, keep_icon = FALSE)
else
to_chat(user, "<span class='warning'>You need one floor tile to build a floor!</span>")
/turf/simulated/floor/plating/lava/screwdriver_act()
return
@@ -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")