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
@@ -270,6 +270,7 @@
/obj/item/gun_control/afterattack(atom/targeted_atom, mob/user, flag, params)
. = ..()
. |= AFTERATTACK_PROCESSED_ITEM
var/modifiers = params2list(params)
var/obj/machinery/deployable_turret/E = user.buckled
E.calculated_projectile_vars = calculate_projectile_angle_and_pixel_offsets(user, targeted_atom, modifiers)