Unify XP progression and enable ability ranks
This commit is contained in:
@@ -72,7 +72,7 @@ func (r CraftRules) Loss(level int64) float64 {
|
||||
func SkillLevel(s GatheringSkill, xp int64) (int64, int64) {
|
||||
level := int64(1)
|
||||
for level < s.MaxLevel {
|
||||
need := s.BaseXP + (level-1)*s.XPPerLevel
|
||||
need := XPForLevel(level + 1)
|
||||
if xp < need {
|
||||
return level, need - xp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user