コード例 #1
0
ファイル: Unhallower.cs プロジェクト: Actius2/CelestialMod
        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);
        }
コード例 #2
0
 private void UpdateVoidSky()
 {
     if (CelestialModPlayer.Get().ZoneVoid)
     {
         return;
     }
 }
コード例 #3
0
ファイル: CelestialMod.cs プロジェクト: Actius2/CelestialMod
        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;
            }
        }
コード例 #4
0
ファイル: VoidUgBgStyle.cs プロジェクト: Actius2/CelestialMod
 public override bool ChooseBgStyle()
 {
     return(CelestialModPlayer.Get().ZoneVoid);
 }
コード例 #5
0
 public override bool ChooseBgStyle()
 {
     return(!Main.gameMenu && CelestialModPlayer.Get().ZoneVoid);
 }