GameHandler.GetEquippedArmorCount C# (CSharp) Méthode

GetEquippedArmorCount() public static méthode

public static GetEquippedArmorCount ( int id ) : int
id int
Résultat int
    public static int GetEquippedArmorCount(int id)
    {
        int count = 0;
        bool multi = DataHolder.Armor(id).IsMulti();
        Character[] cs = GameHandler.Party().GetParty();
        for(int i=0; i<cs.Length; i++)
        {
            bool added = false;
            for(int j=0; j<cs[i].equipment.Length; j++)
            {
                if(cs[i].equipment[j].IsArmor() && cs[i].equipment[j].equipID == id
                        && ((multi && !added) || !multi))
                {
                    count++;
                    added = true;
                }
            }
        }
        return count;
    }
GameHandler