mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Refactors sound groups to use decls instead of a massive switch with dozens of global lists. (#9702)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
icon = 'icons/turf/flooring/carpet.dmi'
|
||||
icon_state = "carpet"
|
||||
initial_flooring = /decl/flooring/carpet
|
||||
footstep_sound = "carpet"
|
||||
footstep_sound = /decl/sound_category/carpet_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/tiled
|
||||
name = "floor"
|
||||
@@ -60,7 +60,7 @@
|
||||
icon = 'icons/turf/flooring/grass.dmi'
|
||||
icon_state = "grass0"
|
||||
initial_flooring = /decl/flooring/grass
|
||||
footstep_sound = "grassstep"
|
||||
footstep_sound = /decl/sound_category/grass_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/snow
|
||||
name = "snow"
|
||||
@@ -69,14 +69,14 @@
|
||||
base_icon = 'icons/turf/floors.dmi'
|
||||
icon_state = "snow"
|
||||
base_icon_state = "snow"
|
||||
footstep_sound = "gravelstep"
|
||||
footstep_sound = /decl/sound_category/snow_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/reinforced
|
||||
icon = 'icons/turf/flooring/tiles.dmi'
|
||||
initial_flooring = /decl/flooring/reinforced
|
||||
name = "reinforced holofloor"
|
||||
icon_state = "reinforced"
|
||||
footstep_sound = "concretestep"
|
||||
footstep_sound = /decl/sound_category/tiles_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/space
|
||||
icon = 'icons/turf/space.dmi'
|
||||
@@ -103,7 +103,7 @@
|
||||
base_icon_state = "sand"
|
||||
base_icon = 'icons/misc/beach.dmi'
|
||||
initial_flooring = null
|
||||
footstep_sound = "sand"
|
||||
footstep_sound = /decl/sound_category/sand_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/beach/sand
|
||||
name = "sand"
|
||||
@@ -113,13 +113,13 @@
|
||||
icon = 'icons/misc/beach2.dmi'
|
||||
icon_state = "sandwater"
|
||||
base_icon_state = "sandwater"
|
||||
footstep_sound = "water"
|
||||
footstep_sound = /decl/sound_category/water_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/beach/water
|
||||
name = "water"
|
||||
icon_state = "seashallow"
|
||||
base_icon_state = "seashallow"
|
||||
footstep_sound = "water"
|
||||
footstep_sound = /decl/sound_category/water_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/desert
|
||||
name = "desert sand"
|
||||
@@ -131,7 +131,7 @@
|
||||
icon = 'icons/turf/flooring/asteroid.dmi'
|
||||
base_icon = 'icons/turf/flooring/asteroid.dmi'
|
||||
initial_flooring = null
|
||||
footstep_sound = "sand"
|
||||
footstep_sound = /decl/sound_category/sand_footstep
|
||||
|
||||
/turf/simulated/floor/holofloor/desert/Initialize()
|
||||
. = ..()
|
||||
@@ -183,7 +183,7 @@
|
||||
return
|
||||
|
||||
/obj/structure/window/reinforced/holowindow/shatter(var/display_message = 1)
|
||||
playsound(src, "glass_break", 70, 1)
|
||||
playsound(src, /decl/sound_category/glass_break_sound, 70, 1)
|
||||
if(display_message)
|
||||
visible_message("[src] fades away as it shatters!")
|
||||
qdel(src)
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
/obj/machinery/door/window/holowindoor/shatter(var/display_message = 1)
|
||||
src.density = 0
|
||||
playsound(src, "glass_break", 70, 1)
|
||||
playsound(src, /decl/sound_category/glass_break_sound, 70, 1)
|
||||
if(display_message)
|
||||
visible_message("[src] fades away as it shatters!")
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user