mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-19 20:44:53 -04:00
Complete rewrite
This commit is contained in:
parent
e188015be1
commit
49242573f2
58 changed files with 550 additions and 865 deletions
14
ca_effects/sound.lua
Normal file
14
ca_effects/sound.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
if not climate_mod.settings.sound then return end
|
||||
|
||||
return
|
||||
|
||||
local function update_effect(player_data)
|
||||
for playername, data in pairs(player_data) do
|
||||
for weather, value in pairs(data) do
|
||||
climate_mod.effects.play_sound(player, value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
climate_api.register_effect("climate_api:sound", update_effect, "change")
|
||||
climate_api.set_effect_cycle("climate_api:skybox", climate_api.LONG_CYCLE)
|
Loading…
Add table
Add a link
Reference in a new issue