Skip to content

Commit

Permalink
grinder works on walls again
Browse files Browse the repository at this point in the history
  • Loading branch information
Thera-Pissed committed Sep 25, 2024
1 parent cf8d263 commit 9b33fa1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions code/game/turfs/closed/_closed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,21 @@

return FALSE

/turf/closed/deconstruct_act(mob/living/user, obj/item/I)
var/act_duration = breakdown_duration
if(!I.tool_start_check(user, amount=0))
return FALSE
to_chat(user, "<span class='notice'>You begin slicing through the outer plating...</span>")
while(I.use_tool(src, user, act_duration, volume=100))
if(iswallturf(src))
to_chat(user, "<span class='notice'>You slice through some of the outer plating...</span>")
if(!alter_integrity(-(I.wall_decon_damage),user,FALSE,TRUE))
return TRUE
else
break

return FALSE

/turf/closed/mech_melee_attack(obj/mecha/M)
M.do_attack_animation(src)
switch(M.damtype)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/equipment/angle_grinder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
usesound = 'sound/weapons/anglegrinder.ogg'
tool_behaviour = null // is set to TOOL_DECONSTRUCT once wielded
toolspeed = 1
wall_decon_damage = 200
usecost = 5
pack = /obj/item/gear_pack/anglegrinder
var/startsound = 'sound/weapons/chainsawhit.ogg'
Expand Down Expand Up @@ -74,7 +75,6 @@
SIGNAL_HANDLER

tool_behaviour = TOOL_DECONSTRUCT
wall_decon_damage = 200
wielded = TRUE
sharpness = IS_SHARP
icon_state = "[initial(item_state)]-wield"
Expand Down

0 comments on commit 9b33fa1

Please sign in to comment.