mirror of
https://github.com/Sokomine/cottages.git
synced 2025-07-27 11:50:20 +02:00
refactor, cleanup, API, bugfixes (#1)
This commit is contained in:
28
resources/sounds.lua
Normal file
28
resources/sounds.lua
Normal file
@ -0,0 +1,28 @@
|
||||
local has = cottages.has
|
||||
|
||||
local sounds = {}
|
||||
|
||||
if has.default then
|
||||
sounds.wood = default.node_sound_wood_defaults()
|
||||
sounds.dirt = default.node_sound_dirt_defaults()
|
||||
sounds.stone = default.node_sound_stone_defaults()
|
||||
sounds.leaves = default.node_sound_leaves_defaults()
|
||||
sounds.metal = default.node_sound_metal_defaults()
|
||||
|
||||
sounds.water_empty = "default_water_footstep"
|
||||
sounds.water_fill = "default_water_footstep"
|
||||
|
||||
sounds.tool_breaks = "default_tool_breaks"
|
||||
|
||||
sounds.use_thresher = "default_grass_footstep"
|
||||
sounds.use_quern = "default_gravel_footstep"
|
||||
end
|
||||
|
||||
if has.env_sounds then
|
||||
sounds.water_empty = sounds.water_empty or "env_sounds_water"
|
||||
sounds.water_fill = "env_sounds_water"
|
||||
sounds.lava_fill = "env_sounds_lava"
|
||||
sounds.lava_empty = "env_sounds_lava"
|
||||
end
|
||||
|
||||
cottages.sounds = sounds
|
Reference in New Issue
Block a user