Skip to content

Commit

Permalink
mechcutter stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gristlebee committed Jun 25, 2024
1 parent e299b72 commit 894d135
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions code/game/mecha/equipment/weapons/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/girders.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

if(istype(W, /obj/item/gun/energy/plasmacutter))
to_chat(user, "<span class='notice'>You start slicing apart the girder...</span>")
if(W.use_tool(src, user, 40, volume=100))
if(W.use_tool(src, user, 10, volume=100))
to_chat(user, "<span class='notice'>You slice apart the girder.</span>")
var/obj/item/stack/sheet/metal/M = new (loc, 2)
M.add_fingerprint(user)
Expand Down

0 comments on commit 894d135

Please sign in to comment.