You can fire PKAs/plasma cutters point blank at turfs (#84974)

## About The Pull Request

Due to point blank checks in guncode you weren't able to fire PKAs or
plasma cutters at turfs point blank, requiring you to aim at least 1
tile away - making mining with those annoying without mesons.

## Why It's Good For The Game

If you click at a turf in front of you with a mining tool, you expect it
to actually work.

## Changelog
🆑
qol: You can fire PKAs/plasma cutters point blank at turfs.
/🆑
This commit is contained in:
SmArtKar
2024-07-15 21:40:13 -06:00
committed by GitHub
parent 1d290063a7
commit 881f99560f
2 changed files with 7 additions and 0 deletions
@@ -84,6 +84,9 @@
else
to_chat(user, span_notice("There are no modifications currently installed."))
/obj/item/gun/energy/recharge/kinetic_accelerator/try_fire_gun(atom/target, mob/living/user, params)
return fire_gun(target, user, user.Adjacent(target) && !isturf(target), params)
/obj/item/gun/energy/recharge/kinetic_accelerator/attack_hand_secondary(mob/user, list/modifiers)
. = ..()
if(. == SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN)
@@ -192,6 +195,7 @@
var/pressure_decrease = 0.25
var/obj/item/gun/energy/recharge/kinetic_accelerator/kinetic_gun
/obj/projectile/kinetic/Destroy()
kinetic_gun = null
return ..()
@@ -169,6 +169,9 @@
else
. = ..(amount=1)
/obj/item/gun/energy/plasmacutter/try_fire_gun(atom/target, mob/living/user, params)
return fire_gun(target, user, user.Adjacent(target) && !isturf(target), params)
#undef PLASMA_CUTTER_CHARGE_WELD
/obj/item/gun/energy/plasmacutter/adv