afterattack now returns a flag if it's reasonable to suspect the user intends to act on an item (#72320)

Necessary for #72292 to work effectively, and probably not very useful
out of that context. Split out of its own PR because this is long and
boring.

I want to make sure that we're catching actual mistakes there, and not
just experiencing side effects of how shitty the attack chain is.
This commit is contained in:
Mothblocks
2023-01-04 21:10:41 -08:00
committed by GitHub
parent a320ea0721
commit f54dcda1c0
101 changed files with 345 additions and 117 deletions
@@ -22,3 +22,4 @@
var/turf/turf_above = get_step_multiz(target, UP)
if(turf_above?.z == user.z)
INVOKE_ASYNC(source, TYPE_PROC_REF(/obj/item, handle_openspace_click), turf_above, user, user.CanReach(turf_above, source), click_parameters)
return COMPONENT_AFTERATTACK_PROCESSED_ITEM