mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 04:45:02 +01:00
Fix issues with unlocking talents in monolith research
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user