From c73662b16a5571d7856bc262c4bf752008c641cc Mon Sep 17 00:00:00 2001 From: Antonio Tosti <5588048+atosti@users.noreply.github.com> Date: Sat, 18 Mar 2023 00:20:07 -0700 Subject: [PATCH] Material Tiles now use the correct sound files, preventing Runtimes (#74066) ## About The Pull Request Material tiles used to reference an incorrect filename for some of their footstep audio. This resulted in barefoot, claw, and heavy footsteps not making any noise on them, as well as triggering a Runtime error in the logs with each step taken. The code for constructing these file names has been corrected, and now properly paths to the appropriate sounds. Closes #70145 ## Why It's Good For The Game These changes improve stability by reducing unnecessary Runtimes, and restore footstep noise to Material tiles for many creatures/scenarios. ## Changelog :cl: fix: Material tile floors now make noise when walked on by bare/claw/heavy feet /:cl: --- code/datums/materials/_material.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/materials/_material.dm b/code/datums/materials/_material.dm index d1b760cd576..b062651b893 100644 --- a/code/datums/materials/_material.dm +++ b/code/datums/materials/_material.dm @@ -140,9 +140,9 @@ Simple datum which is instanced once per type and is used for every object of sa if(turf_sound_override) var/turf/open/O = T O.footstep = turf_sound_override - O.barefootstep = turf_sound_override - O.clawfootstep = turf_sound_override - O.heavyfootstep = turf_sound_override + O.barefootstep = turf_sound_override + "barefoot" + O.clawfootstep = turf_sound_override + "claw" + O.heavyfootstep = FOOTSTEP_GENERIC_HEAVY if(alpha < 255) T.AddElement(/datum/element/turf_z_transparency) setup_glow(T)