From 4f00c9dfa1b861708b816156ec2a3d0aa38ae494 Mon Sep 17 00:00:00 2001 From: Kylerace Date: Sun, 5 Sep 2021 01:08:02 -0700 Subject: [PATCH] fixes bad arguments to /datum/footstep/Attach() (vary to sound_vary) (#61231) #60479 changed the attach argument "vary" into "sound_vary" but didnt change the two associative arguments for vary to sound_vary. this does that. now Attach() wont runtime for the footstep element --- .../ai/objects/vending_machines/vending_machine_controller.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/ai/objects/vending_machines/vending_machine_controller.dm b/code/datums/ai/objects/vending_machines/vending_machine_controller.dm index dc3c425a9fa..9f3e51d654b 100644 --- a/code/datums/ai/objects/vending_machines/vending_machine_controller.dm +++ b/code/datums/ai/objects/vending_machines/vending_machine_controller.dm @@ -15,7 +15,7 @@ var/obj/machinery/vending/vendor_pawn = new_pawn vendor_pawn.tiltable = FALSE //Not manually tiltable by hitting it anymore. We are now aggressively doing it ourselves. vendor_pawn.AddElement(/datum/element/waddling) - vendor_pawn.AddElement(/datum/element/footstep, FOOTSTEP_OBJ_MACHINE, 1, -6, vary = TRUE) + vendor_pawn.AddElement(/datum/element/footstep, FOOTSTEP_OBJ_MACHINE, 1, -6, sound_vary = TRUE) vendor_pawn.squish_damage = 15 return ..() //Run parent at end @@ -24,7 +24,7 @@ vendor_pawn.tiltable = TRUE vendor_pawn.RemoveElement(/datum/element/waddling) vendor_pawn.squish_damage = initial(vendor_pawn.squish_damage) - RemoveElement(/datum/element/footstep, FOOTSTEP_OBJ_MACHINE, 1, -6, vary = TRUE) + RemoveElement(/datum/element/footstep, FOOTSTEP_OBJ_MACHINE, 1, -6, sound_vary = TRUE) return ..() //Run parent at end /datum/ai_controller/vending_machine/SelectBehaviors(delta_time)