Fix potential count calculations when creating a record

This commit is contained in:
Melledy
2025-12-09 21:33:34 -08:00
parent bf5fe3912f
commit 6f832bcdfe

View File

@@ -70,7 +70,7 @@ public class StarTowerBuild implements GameDatabaseObject {
// Add potentials // Add potentials
for (var entry : game.getPotentials()) { for (var entry : game.getPotentials()) {
// // Get potential data
int id = entry.getIntKey(); int id = entry.getIntKey();
int level = entry.getIntValue(); int level = entry.getIntValue();
@@ -81,13 +81,13 @@ public class StarTowerBuild implements GameDatabaseObject {
var potentialData = GameData.getPotentialDataTable().get(id); var potentialData = GameData.getPotentialDataTable().get(id);
if (potentialData != null) { if (potentialData != null) {
int charId = potentialData.getCharId(); int charId = potentialData.getCharId();
this.getCharPots().put(charId, this.getCharPots().get(charId) + 1); this.getCharPots().add(charId, level);
} }
} }
// Add sub note skills // Add sub note skills
for (var entry : game.getItems()) { for (var entry : game.getItems()) {
this.getSubNoteSkills().put(entry.getIntKey(), entry.getIntValue()); this.getSubNoteSkills().add(entry.getIntKey(), entry.getIntValue());
} }
// Set secondary skills // Set secondary skills