public override void CopyCustomBiomesTo(Player other) { MacrocosmPlayer modOther = other.GetModPlayer <MacrocosmPlayer>(); modOther.ZoneMoon = ZoneMoon; modOther.ZoneBasalt = ZoneBasalt; }
public override void UpdateMusic(ref int music, ref MusicPriority priority) { if (Main.myPlayer != -1 && !Main.gameMenu && Main.LocalPlayer.active) { MacrocosmPlayer modPlayer = Main.LocalPlayer.GetModPlayer <MacrocosmPlayer>(); if (modPlayer.ZoneMoon && Main.dayTime) { music = GetSoundSlot(SoundType.Music, "Sounds/Music/MoonDay"); priority = MusicPriority.Environment; } if (modPlayer.ZoneMoon && !Main.dayTime) { music = GetSoundSlot(SoundType.Music, "Sounds/Music/MoonDay"); priority = MusicPriority.Environment; } } }
public override bool CustomBiomesMatch(Player other) { MacrocosmPlayer modOther = other.GetModPlayer <MacrocosmPlayer>(); return(ZoneMoon == modOther.ZoneMoon && ZoneBasalt == modOther.ZoneBasalt); }