added support for fogTint inside bramble dimensions

This commit is contained in:
FreezeDriedMangoes 2022-06-30 17:50:07 -04:00
parent 8c9c6d3e31
commit 060d7a0fb0

View File

@ -82,6 +82,15 @@ namespace NewHorizons.Builder.Body
PairExit(config.linksTo, outerFogWarpVolume);
// change fog color
if (body.Config.Bramble.dimension.fogTint != null)
{
var fogGO = SearchUtilities.FindChild(atmo, "FogSphere_Hub");
var fog = fogGO.GetComponent<PlanetaryFogController>();
fog.fogTint = body.Config.Bramble.dimension.fogTint.ToColor();
}
return dimension;
}