welders no longer flash the user if the user somehow manages to not be adjacent to the welder

This commit is contained in:
blessedmulligan
2019-07-27 21:43:09 -05:00
parent a1ddc25d31
commit 36da801edd
+2 -2
View File
@@ -233,13 +233,13 @@
// When welding is about to start, run a normal tool_use_check, then flash a mob if it succeeds.
/obj/item/weldingtool/tool_start_check(mob/living/user, amount=0)
. = tool_use_check(user, amount)
if(. && user)
if(. && user && get_dist(get_turf(src), get_turf(user)) <= 1)
user.flash_act(light_intensity)
// Flash the user during welding progress
/obj/item/weldingtool/tool_check_callback(mob/living/user, amount, datum/callback/extra_checks)
. = ..()
if(. && user)
if(. && user && get_dist(get_turf(src), get_turf(user)) <= 1)
if (progress_flash_divisor == 0)
user.flash_act(min(light_intensity,1))
progress_flash_divisor = initial(progress_flash_divisor)