Unify XP progression and enable ability ranks

This commit is contained in:
dingo
2026-09-10 06:08:49 -04:00
parent 906a07ff66
commit ac695b3270
17 changed files with 313 additions and 43 deletions
+1 -1
View File
@@ -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
}