mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
Renames some pre_attack arguments (#30324)
* Renames some pre_attack arguments * fix
This commit is contained in:
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user