Skip to content

Commit

Permalink
fix respec logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GDCloudstrike authored and serenibyss committed Sep 20, 2024
1 parent 0a6c4a7 commit 7d1d4ea
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2068,19 +2068,20 @@ protected ModularWindow createIndividualUpgradeWindow(final EntityPlayer player)
for (int followupUpgrade : followupUpgrades) {
if (upgrades[followupUpgrade]) {
unlockedFollowupUpgrades++;
}
if (allPrereqRequired[followupUpgrade]) {
doesFollowupRequireAllPrereqs = true;
}
int[] currentPrereqs = prereqUpgrades[followupUpgrade];
for (int prereqUpgrade : currentPrereqs) {
if (upgrades[prereqUpgrade]) {
unlockedNeighboringUpgrades++;
if (allPrereqRequired[followupUpgrade]) {
doesFollowupRequireAllPrereqs = true;
}
int[] currentPrereqs = prereqUpgrades[followupUpgrade];
for (int prereqUpgrade : currentPrereqs) {
if (upgrades[prereqUpgrade]) {
unlockedNeighboringUpgrades++;
}
}
if (unlockedNeighboringUpgrades <= 1) {
canFollowupSpareAConnection = false;
}
}
if (unlockedNeighboringUpgrades <= 1) {
canFollowupSpareAConnection = false;
}

unlockedNeighboringUpgrades = 0;
}

Expand Down

0 comments on commit 7d1d4ea

Please sign in to comment.