Beispiel #1
0
    void HandleStatUsageEvent(StatUsageTriggerEvent sute)
    {
        PlayerSkill skill = mPlayerSkills.GetPlayerSkill(sute.Skill);

        if (skill.Level < skill.Max)
        {
            skill.Uses++;
            // TODO (James): Come up with a better leveling curve
            if (skill.Uses >= skill.Level * 10)
            {
                skill.Level++;
            }
        }
    }