Skip to content

Commit

Permalink
help/harm intent to repair/slice walls
Browse files Browse the repository at this point in the history
  • Loading branch information
HumiliatedGoblin committed Apr 6, 2024
1 parent 7dbca5b commit 00bd78a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/game/turfs/walls/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
var/hull = 0
var/walltype = WALL_METAL
/// when walls smooth with one another, the type of junction each wall is.
var/junctiontype
var/junctiontype
var/thermite = 0
var/melting = FALSE
var/claws_minimum = CLAW_TYPE_SHARP
Expand All @@ -24,7 +24,7 @@

var/damage = 0
/// Wall will break down to girders if damage reaches this point
var/damage_cap = HEALTH_WALL
var/damage_cap = HEALTH_WALL

var/damage_overlay
var/global/damage_overlays[8]
Expand All @@ -38,7 +38,7 @@
var/d_state = 0 //Normal walls are now as difficult to remove as reinforced walls

/// the acid hole inside the wall
var/obj/effect/acid_hole/acided_hole
var/obj/effect/acid_hole/acided_hole
var/acided_hole_dir = SOUTH

var/special_icon = 0
Expand Down Expand Up @@ -482,6 +482,8 @@
/turf/closed/wall/proc/try_weldingtool_usage(obj/item/W, mob/user)
if(!damage || !iswelder(W))
return FALSE
if(!(user.a_intent == INTENT_HELP))
return FALSE

var/obj/item/tool/weldingtool/WT = W
if(WT.remove_fuel(0, user))
Expand All @@ -504,6 +506,8 @@
if(!(WT.remove_fuel(0, user)))
to_chat(user, SPAN_WARNING("You need more welding fuel!"))
return
if(user.a_intent == INTENT_HELP)
return

playsound(src, 'sound/items/Welder.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] begins slicing through the outer plating."),
Expand Down

0 comments on commit 00bd78a

Please sign in to comment.