public int NextExp(int lv)
    {
        if (lv <= 99)
        {
            return(0);
        }
        List <int> experienceTable = ExperienceTable.Get();

        return(experienceTable[lv + 1]);
    }
Beispiel #2
0
    private bool IsLevelUp(CharacterData characterData)
    {
        int        level           = characterData.lv;
        int        exp             = characterData.exp;
        List <int> experienceTable = ExperienceTable.Get();

        if (level >= 99)
        {
            return(false);
        }
        int nextLevel = experienceTable[level + 1];

        if (exp > nextLevel)
        {
            return(true);
        }
        return(false);
    }