From 894d135ff6a3dca56723087a423e1331d03306eb Mon Sep 17 00:00:00 2001
From: Gristlebee <56049844+Gristlebee@users.noreply.github.com>
Date: Tue, 25 Jun 2024 15:42:26 -0700
Subject: [PATCH] mechcutter stuff
---
code/game/mecha/equipment/weapons/weapons.dm | 12 ++++++++++++
code/game/objects/structures/girders.dm | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm
index 4a16a6f9b249..d56fef347ef3 100644
--- a/code/game/mecha/equipment/weapons/weapons.dm
+++ b/code/game/mecha/equipment/weapons/weapons.dm
@@ -151,6 +151,18 @@
return 1
return 0
+/turf/closed/wall/proc/mechcutter_wall_act(obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma/cutter)
+ add_overlay(GLOB.welding_sparks)
+ if(cutter.do_after_mecha(src, slicing_duration * 0.25))
+ cutter.log_message("Cut through [src]", LOG_MECHA)
+ cut_overlay(GLOB.welding_sparks)
+ dismantle_wall()
+
+/obj/structure/girder/proc/mechcutter_girder_act(obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma/cutter)
+ if(cutter.do_after_mecha(src, 2.5))
+ new /obj/item/stack/sheet/metal(loc, 2)
+ qdel(src)
+
//Exosuit-mounted kinetic accelerator
/obj/item/mecha_parts/mecha_equipment/weapon/energy/mecha_kineticgun
equip_cooldown = 10
diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm
index 6463282eb6df..6a3cae5bbd72 100644
--- a/code/game/objects/structures/girders.dm
+++ b/code/game/objects/structures/girders.dm
@@ -38,7 +38,7 @@
if(istype(W, /obj/item/gun/energy/plasmacutter))
to_chat(user, "You start slicing apart the girder...")
- if(W.use_tool(src, user, 40, volume=100))
+ if(W.use_tool(src, user, 10, volume=100))
to_chat(user, "You slice apart the girder.")
var/obj/item/stack/sheet/metal/M = new (loc, 2)
M.add_fingerprint(user)