Fix issues with unlocking talents in monolith research

This commit is contained in:
Melledy
2025-11-20 05:42:44 -08:00
parent 6289e3f1b6
commit f128b93210
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ public class PlayerProgress extends PlayerManager implements GameDatabaseObject
}
// Set
this.starTowerGrowth[index] |= (1 << nodeId);
this.starTowerGrowth[index] |= (1 << (nodeId - 1));
// Success
return true;

View File

@@ -55,7 +55,7 @@ public class StarTowerManager extends PlayerManager {
// Get nodes bits
int nodes = growth[groupIndex];
int test = (1 << data.getNodeId());
int test = (1 << (data.getNodeId() - 1));
// Check if bit is set
return (nodes & test) != 0;
@@ -117,7 +117,7 @@ public class StarTowerManager extends PlayerManager {
this.getProgress().setStarTowerGrowthNode(data.getGroup(), data.getNodeId());
// Remove items
getPlayer().getInventory().removeItem(data.getItemId1(), data.getItemQty1());
getPlayer().getInventory().removeItem(data.getItemId1(), data.getItemQty1(), change);
// Add to unlocked list
unlocked.add(data.getId());