From 9fd3c9436baf3cc35c5b97c7b09f400fa5d7aa21 Mon Sep 17 00:00:00 2001 From: Dawnseer <126404225+Dawnseer@users.noreply.github.com> Date: Wed, 19 Apr 2023 00:22:29 +0200 Subject: [PATCH] Rolling table gets rolling sound (#74805) ## About The Pull Request I realized while working on another project, that the rolling table does not play the rolling sound when it's moved. Absolutely criminal. I took it upon myself to right this wrong. And not just because it will go great with said project I'm working on. I swear. ## Why It's Good For The Game Makes the visuals of the table moving work with the audio of the table moving, instead of wondering due to the rarity of the rolling table 'Huh, is the table bugged?' if they haven't noticed the table name. ## Changelog :cl: fix: The rolling table actually plays the rolling sound, as the lord intended. /:cl: --- code/game/objects/structures/tables_racks.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index b40484e8841..9f2a13a630b 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -376,7 +376,11 @@ for(var/atom/movable/attached_movable as anything in attached_items) if(!attached_movable.Move(loc)) RemoveItemFromTable(attached_movable, attached_movable.loc) - + +/obj/structure/table/rolling/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change = TRUE) + . = ..() + if(has_gravity()) + playsound(src, 'sound/effects/roll.ogg', 100, TRUE) /* * Glass tables */