Afterattack fixes (#2350)

## About The Pull Request

See name, I'm actually going through with it and doing it.

## Why It's Good For The Game

Fixes broken item interactions

closes #2253
closes #2204

## Proof Of Testing

Worked on my device (So far)

## Changelog

🆑
fix: Phystool and Physgun work correctly again
fix: Clockcult slabs can examine again
fix: Compostbin is now handled correctly
fix: Robohand checks for robohand again
/🆑
This commit is contained in:
Waterpig
2024-11-07 09:42:41 +01:00
committed by GitHub
parent 66e7948cd6
commit b8f00860e4
6 changed files with 80 additions and 71 deletions
@@ -56,7 +56,7 @@
return
selected_mode.use_act(user)
/obj/item/phystool/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
/obj/item/phystool/ranged_interact_with_atom(atom/target, mob/user, list/modifiers)
. = ..()
if(!selected_mode)
return
@@ -75,7 +75,6 @@
return
do_work_effect(target, user)
playsound(user, 'modular_zubbers/sound/phystools/toolgun_shot1.ogg', 100, TRUE)
return SECONDARY_ATTACK_CONTINUE_CHAIN
/obj/item/phystool/proc/do_work_effect(atom/target, mob/user)
if(!target)