Skip to content

Commit

Permalink
Fix floor tile welding (#13592)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvv-vvvv authored Jul 27, 2023
1 parent 7b68c6d commit f623828
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions code/game/objects/items/stacks/tiles/tile_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,21 @@

/obj/item/stack/tile/plasteel/welder_act(mob/living/user, obj/item/I)
. = ..()
if(!use(4))
balloon_alert(user, "Need 4 tiles")
return

var/obj/item/tool/weldingtool/welder = I
if(!(welder.use(1)))
to_chat(user, span_warning("You need more welding fuel to complete this task."))
return
return FALSE

var/drop_loc = get_turf(src)
if(!use(4))
balloon_alert(user, "Need 4 tiles")
return FALSE

welder.eyecheck(user)
to_chat(user, span_warning("You turn the floor plates back into a metal sheet."))
playsound(src, 'sound/items/welder.ogg', 25, 1)
new /obj/item/stack/sheet/metal(get_turf(src))
new /obj/item/stack/sheet/metal(drop_loc)
return TRUE

///Creates plating, used for space turfs only
/obj/item/stack/tile/plasteel/proc/build(turf/space_turf)
Expand Down

0 comments on commit f623828

Please sign in to comment.