Add record MobSkillId for mob skill type + level combination

Pair is nasty to work with when they are passed around all over
This commit is contained in:
P0nk
2022-09-03 11:01:51 +02:00
parent 7a784a7938
commit 930d365752
8 changed files with 32 additions and 34 deletions

View File

@@ -69,7 +69,7 @@ public class MobSkillFactory {
return Optional.of(existingMs);
}
Data skillData = skillRoot.getChildByPath(type + "/level/" + level);
Data skillData = skillRoot.getChildByPath("%d/level/%d".formatted(type.getId(), level));
if (skillData == null) {
return Optional.empty();
}