Skip to content

Commit

Permalink
fix respec logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GDCloudstrike committed Sep 19, 2024
1 parent 5d01167 commit ae90bc8
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2070,19 +2070,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 ae90bc8

Please sign in to comment.