Server.Mobiles.PlayerMobile.ChampionTitleInfo.CheckAtrophy C# (CSharp) Méthode

CheckAtrophy() public static méthode

public static CheckAtrophy ( PlayerMobile pm ) : void
pm PlayerMobile
Résultat void
            public static void CheckAtrophy(PlayerMobile pm)
            {
                ChampionTitleInfo t = pm.m_ChampionTitles;
                if (t == null)
                    return;

                if (t.m_Values == null)
                    t.m_Values = new TitleInfo[ChampionSpawnInfo.Table.Length];

                for (int i = 0; i < t.m_Values.Length; i++)
                {
                    if ((t.GetLastDecay(i) + LossDelay) < DateTime.UtcNow)
                    {
                        t.Atrophy(i, LossAmount);
                    }
                }
            }