Fix skill upgrade requiring more items that needed

This commit is contained in:
Melledy
2025-10-30 08:35:01 -07:00
parent 3a44ebbdc3
commit 82e992939b

View File

@@ -198,12 +198,12 @@ public class Character implements GameDatabaseObject {
// TODO check player level to make sure they can advance this character
// Sanity check
if (index < 0 || index >= this.skills.length) {
if (index < 0 || index >= this.getSkills().length) {
return null;
}
// Get advance data
int upgradeId = (this.getData().getSkillsUpgradeGroup(index) * 100) + (this.skills[index] + 1);
int upgradeId = (this.getData().getSkillsUpgradeGroup(index) * 100) + this.getSkills()[index];
var data = GameData.getCharacterSkillUpgradeDataTable().get(upgradeId);
if (data == null) {