mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-19 20:44:53 -04:00
Add influence registry, make sounds fade, add skybox feature detection
This commit is contained in:
parent
f41d5f259c
commit
18045b1943
10 changed files with 83 additions and 52 deletions
|
@ -3,6 +3,7 @@ if not climate_mod.settings.skybox then return end
|
|||
local EFFECT_NAME = "climate_api:skybox"
|
||||
|
||||
local function set_skybox(player, sky)
|
||||
if not player.get_stars then return end
|
||||
if sky.sky_data ~= nil then
|
||||
player:set_sky(sky.sky_data)
|
||||
end
|
||||
|
@ -21,6 +22,7 @@ local function set_skybox(player, sky)
|
|||
end
|
||||
|
||||
local function remove_skybox(player)
|
||||
if not player.get_stars then return end
|
||||
player:set_sky({ type = "regular", clouds = true})
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue