Exemple #1
0
    public static int GetRequireStar(int petId, int talentId)
    {
        Pet petRow = PetEvoGlobal.GetPetRow(petId);

        for (int i = 0; i < petRow.talent.get_Count(); i++)
        {
            if (petRow.talent.get_Item(i) == talentId)
            {
                return(petRow.talentStart.get_Item(i));
            }
        }
        return(-1);
    }
Exemple #2
0
    private static List <int> GetIds(int petId, int type)
    {
        List <int> list   = new List <int>();
        Pet        petRow = PetEvoGlobal.GetPetRow(petId);
        List <int> talent = petRow.talent;

        using (List <int> .Enumerator enumerator = talent.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                int           current          = enumerator.get_Current();
                ChongWuTianFu chongWuTianFuRow = PetEvoGlobal.GetChongWuTianFuRow(current);
                if (chongWuTianFuRow.type == type)
                {
                    list.Add(current);
                }
            }
        }
        return(list);
    }
Exemple #3
0
    public static int GetNeedQulity(int petId, int talentId)
    {
        Pet        petRow      = PetEvoGlobal.GetPetRow(petId);
        List <int> talent      = petRow.talent;
        List <int> talentStart = petRow.talentStart;
        int        num         = 0;

        using (List <int> .Enumerator enumerator = talent.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                int current = enumerator.get_Current();
                if (current == talentId)
                {
                    return(talentStart.get_Item(num));
                }
                num++;
            }
        }
        return(-1);
    }