mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix skill upgrade requiring more items that needed
This commit is contained in:
1 parent
3a44ebbdc3
commit
82e992939b
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user