Sulphurous Sea Rain theme code for interim
It appears this will make its way in v2.0.5 as well, given it's already in the release candidate. It's newly added music, so this should be added to its changelogs.
This commit is contained in:
1 parent
95c7e0d10d
commit
c70ff68e06
1 file changed
+13
-3
@@ -30,6 +30,7 @@ namespace CalamityMod.BiomeManagers
|
||||
if (!CalamityPlayer.areThereAnyDamnBosses)
|
||||
{
|
||||
bool acidRain = AcidRainEvent.AcidRainEventIsOngoing;
|
||||
bool normalRain = Main.cloudAlpha > 0f;
|
||||
|
||||
// Acid Rain themes
|
||||
if (acidRain)
|
||||
@@ -41,9 +42,18 @@ namespace CalamityMod.BiomeManagers
|
||||
|
||||
// Regular Sulphur Sea themes, when Acid Rain is not occurring
|
||||
else
|
||||
music = !Main.dayTime
|
||||
? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime
|
||||
: CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime
|
||||
{
|
||||
if (normalRain)
|
||||
{
|
||||
music = CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaRain") ?? MusicID.Desert; // Normal Rain
|
||||
}
|
||||
else
|
||||
{
|
||||
music = !Main.dayTime
|
||||
? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime
|
||||
: CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return music;
|
||||
|
||||
Reference in new issue
Block a user