mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 12:54:36 +01:00
Fix skill upgrade requiring more items that needed
This commit is contained in:
@@ -198,12 +198,12 @@ public class Character implements GameDatabaseObject {
|
|||||||
// TODO check player level to make sure they can advance this character
|
// TODO check player level to make sure they can advance this character
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
if (index < 0 || index >= this.skills.length) {
|
if (index < 0 || index >= this.getSkills().length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get advance data
|
// 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);
|
var data = GameData.getCharacterSkillUpgradeDataTable().get(upgradeId);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user