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

AwardHarrowerTitle() public static méthode

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

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

                int count = 1;

                for (int i = 0; i < t.m_Values.Length; i++)
                {
                    if (t.m_Values[i].Value > 900)
                        count++;
                }

                t.m_Harrower = Math.Max(count, t.m_Harrower);   //Harrower titles never decay.
            }