mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 12:54:36 +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
|
// Set
|
||||||
this.starTowerGrowth[index] |= (1 << nodeId);
|
this.starTowerGrowth[index] |= (1 << (nodeId - 1));
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class StarTowerManager extends PlayerManager {
|
|||||||
|
|
||||||
// Get nodes bits
|
// Get nodes bits
|
||||||
int nodes = growth[groupIndex];
|
int nodes = growth[groupIndex];
|
||||||
int test = (1 << data.getNodeId());
|
int test = (1 << (data.getNodeId() - 1));
|
||||||
|
|
||||||
// Check if bit is set
|
// Check if bit is set
|
||||||
return (nodes & test) != 0;
|
return (nodes & test) != 0;
|
||||||
@@ -117,7 +117,7 @@ public class StarTowerManager extends PlayerManager {
|
|||||||
this.getProgress().setStarTowerGrowthNode(data.getGroup(), data.getNodeId());
|
this.getProgress().setStarTowerGrowthNode(data.getGroup(), data.getNodeId());
|
||||||
|
|
||||||
// Remove items
|
// Remove items
|
||||||
getPlayer().getInventory().removeItem(data.getItemId1(), data.getItemQty1());
|
getPlayer().getInventory().removeItem(data.getItemId1(), data.getItemQty1(), change);
|
||||||
|
|
||||||
// Add to unlocked list
|
// Add to unlocked list
|
||||||
unlocked.add(data.getId());
|
unlocked.add(data.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user