mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user