9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-01 21:36:34 +00:00

Extra check to SkillLevelMap

This commit is contained in:
Auxilor
2023-05-18 14:47:14 +01:00
parent c117973e38
commit db7af7d44b

View File

@@ -31,7 +31,7 @@ class SkillLevelMap(
val required = skill.getXPRequired(current.level)
return if (current.xp + xp >= required) {
return if (current.xp + xp >= required && current.level < skill.maxLevel) {
val overshoot = current.xp + xp - required
this[skill] = SkillLevel(