From 4d78a65e67fd3d67948a12a111a32afb9b15528c Mon Sep 17 00:00:00 2001
From: Coolrune206 <71326864+Coolrune206@users.noreply.github.com>
Date: Wed, 13 Sep 2023 19:51:58 +1000
Subject: [PATCH] Makes building on chasms take a screwdriver (#22221)
* building on chasms needs tools
* Henri review
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
* Contrabang review
---------
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
---
code/game/turfs/simulated/floor/chasm.dm | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/code/game/turfs/simulated/floor/chasm.dm b/code/game/turfs/simulated/floor/chasm.dm
index 20cd70e4ef6..64db0b8a50e 100644
--- a/code/game/turfs/simulated/floor/chasm.dm
+++ b/code/game/turfs/simulated/floor/chasm.dm
@@ -54,13 +54,17 @@
if(istype(C, /obj/item/stack/rods))
var/obj/item/stack/rods/R = C
var/obj/structure/lattice/L = locate(/obj/structure/lattice, src)
+ var/obj/item/O = user.get_inactive_hand()
if(!L)
- if(R.use(1))
- to_chat(user, "You construct a lattice.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
- ReplaceWithLattice()
+ if(O?.tool_behaviour == TOOL_SCREWDRIVER)
+ if(R.use(1))
+ to_chat(user, "You construct a lattice.")
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
+ ReplaceWithLattice()
+ else
+ to_chat(user, "You need one rod to build a lattice.")
else
- to_chat(user, "You need one rod to build a lattice.")
+ to_chat(user, "You need to hold a screwdriver in your other hand to secure this lattice.")
return
if(istype(C, /obj/item/stack/tile/plasteel))
var/obj/structure/lattice/L = locate(/obj/structure/lattice, src)