Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void UpdateVoidSky()
 {
     if (CelestialModPlayer.Get().ZoneVoid)
     {
         return;
     }
 }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 public override bool ChooseBgStyle()
 {
     return(CelestialModPlayer.Get().ZoneVoid);
 }
Exemplo n.º 5
0
 public override bool ChooseBgStyle()
 {
     return(!Main.gameMenu && CelestialModPlayer.Get().ZoneVoid);
 }