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