public override bool UseItem(Player player) { CelestialModPlayer.Get(player).Hallowness = 5; //todo; add a part that doesn't allow the usage of the item when hallownessis at 0 return(true); }
private void UpdateVoidSky() { if (CelestialModPlayer.Get().ZoneVoid) { return; } }
public override void UpdateMusic(ref int music, ref MusicPriority priority) { if (Main.gameMenu) { return; } if (priority > MusicPriority.Event) { return; } Player player = Main.LocalPlayer; if (!player.active) { return; } CelestialModPlayer Gamer = CelestialModPlayer.Get(player); if (Gamer.ZoneVoid) { music = GetSoundSlot(SoundType.Music, "Sounds/Music/VoidMusic"); priority = MusicPriority.BiomeHigh; } }
public override bool ChooseBgStyle() { return(CelestialModPlayer.Get().ZoneVoid); }
public override bool ChooseBgStyle() { return(!Main.gameMenu && CelestialModPlayer.Get().ZoneVoid); }