Renames some pre_attack arguments (#30324)

* Renames some pre_attack arguments

* fix
This commit is contained in:
Contrabang
2025-09-04 07:11:59 +00:00
committed by GitHub
parent 7bdc36a032
commit 5b368c3f8f
13 changed files with 52 additions and 52 deletions
@@ -134,10 +134,10 @@
selfcharge = TRUE
can_holster = TRUE
/obj/item/gun/energy/floragun/pre_attack(atom/A, mob/living/user, params)
if(istype(A, /obj/machinery/hydroponics))
/obj/item/gun/energy/floragun/pre_attack(atom/target, mob/living/user, params)
if(istype(target, /obj/machinery/hydroponics))
// Calling afterattack from pre_attack looks stupid, but afterattack with proximity FALSE is what makes the gun fire, and we're returning FALSE to cancel the melee attack.
afterattack__legacy__attackchain(A, user, FALSE, params)
afterattack__legacy__attackchain(target, user, FALSE, params)
return CONTINUE_ATTACK
return ..()