diff --git a/code/modules/overmap/planets/planet_types/barren_planet.dm b/code/modules/overmap/planets/planet_types/barren_planet.dm index f55ed1cb290..d4266f4844e 100644 --- a/code/modules/overmap/planets/planet_types/barren_planet.dm +++ b/code/modules/overmap/planets/planet_types/barren_planet.dm @@ -60,7 +60,7 @@ icon = 'icons/planet/barren/barren_floor.dmi' icon_state = "barren" base_icon_state = "barren" - footstep = FOOTSTEP_GENERIC_HEAVY + footstep = FOOTSTEP_SAND barefootstep = FOOTSTEP_SAND clawfootstep = FOOTSTEP_SAND heavyfootstep = FOOTSTEP_GENERIC_HEAVY diff --git a/code/modules/overmap/planets/planet_types/chlorine_planet.dm b/code/modules/overmap/planets/planet_types/chlorine_planet.dm index d02199c4ff6..05682538922 100644 --- a/code/modules/overmap/planets/planet_types/chlorine_planet.dm +++ b/code/modules/overmap/planets/planet_types/chlorine_planet.dm @@ -121,7 +121,7 @@ footstep = FOOTSTEP_SAND barefootstep = FOOTSTEP_SAND clawfootstep = FOOTSTEP_SAND - heavyfootstep = FOOTSTEP_SAND + heavyfootstep = FOOTSTEP_GENERIC_HEAVY /turf/open/misc/planetary/chlorine_sand/Initialize() . = ..() diff --git a/code/modules/overmap/planets/planet_types/shrouded_planet.dm b/code/modules/overmap/planets/planet_types/shrouded_planet.dm index 8f812b8fa38..8e3927bdd11 100644 --- a/code/modules/overmap/planets/planet_types/shrouded_planet.dm +++ b/code/modules/overmap/planets/planet_types/shrouded_planet.dm @@ -102,7 +102,7 @@ footstep = FOOTSTEP_SAND barefootstep = FOOTSTEP_SAND clawfootstep = FOOTSTEP_SAND - heavyfootstep = FOOTSTEP_SAND + heavyfootstep = FOOTSTEP_GENERIC_HEAVY /turf/open/misc/planetary/shrouded_sand/Initialize() . = ..() diff --git a/code/modules/overmap/planets/planetary_objects.dm b/code/modules/overmap/planets/planetary_objects.dm index 918a2b60436..bb6c089e266 100644 --- a/code/modules/overmap/planets/planetary_objects.dm +++ b/code/modules/overmap/planets/planetary_objects.dm @@ -95,7 +95,7 @@ footstep = FOOTSTEP_SAND barefootstep = FOOTSTEP_SAND clawfootstep = FOOTSTEP_SAND - heavyfootstep = FOOTSTEP_SAND + heavyfootstep = FOOTSTEP_GENERIC_HEAVY /turf/open/misc/planetary/sand/Initialize() . = ..() diff --git a/code/modules/unit_tests/_unit_tests.dm b/code/modules/unit_tests/_unit_tests.dm index 6988e694311..273da0f8ff3 100644 --- a/code/modules/unit_tests/_unit_tests.dm +++ b/code/modules/unit_tests/_unit_tests.dm @@ -177,6 +177,7 @@ #include "tgui_create_message.dm" #include "timer_sanity.dm" #include "traitor.dm" +#include "turf_sound.dm" #include "unit_test.dm" #include "wizard_loadout.dm" // END_INCLUDE diff --git a/code/modules/unit_tests/turf_sound.dm b/code/modules/unit_tests/turf_sound.dm new file mode 100644 index 00000000000..683ede53264 --- /dev/null +++ b/code/modules/unit_tests/turf_sound.dm @@ -0,0 +1,19 @@ +/** + * Goes through every subtype of /turf/open and makes sure a valid step type exists for each category. + */ +/datum/unit_test/turf_sound + +/datum/unit_test/turf_sound/Run() + for(var/turf/open/turf_to_check as anything in subtypesof(/turf/open)) + var/footstep = initial(turf_to_check.footstep) + var/barefootstep = initial(turf_to_check.barefootstep) + var/clawfootstep = initial(turf_to_check.clawfootstep) + var/heavyfootstep = initial(turf_to_check.heavyfootstep) + if(footstep && !GLOB.footstep[footstep]) + TEST_FAIL("Footstep for [turf_to_check] is not a valid entry, check \"code/__DEFINES/footsteps.dm\" for valid values.") + if(barefootstep && !GLOB.barefootstep[barefootstep]) + TEST_FAIL("Barefootstep for [turf_to_check] is not a valid entry, check \"code/__DEFINES/footsteps.dm\" for valid values.") + if(clawfootstep && !GLOB.clawfootstep[clawfootstep]) + TEST_FAIL("Clawfootstep for [turf_to_check] is not a valid entry, check \"code/__DEFINES/footsteps.dm\" for valid values.") + if(heavyfootstep && !GLOB.heavyfootstep[heavyfootstep]) + TEST_FAIL("Heavyfootstep for [turf_to_check] is not a valid entry, check \"code/__DEFINES/footsteps.dm\" for valid values.")