mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-12 12:24:35 +01:00
Fix potential count calculations when creating a record
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user