Skip to content

Commit

Permalink
Fix bug prioritizing any aug with prerequisites
Browse files Browse the repository at this point in the history
Due to an && vs an ||, any augmentation with prerequisites was having its prerequisites made a priority augmentation, regardless of whether the parent aug was flagged as desired.
  • Loading branch information
alainbryden committed Nov 29, 2024
1 parent ce131ff commit d953863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faction-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ async function updateAugmentationData(ns) {
* Note when --all-factions mode is not enabled, it's possible some prereqs will be missing from our list
* @param {AugmentationData} aug */
function propagateDesired(aug) {
if (!aug.desired && !aug.prereqs) return;
if (!aug.desired || !aug.prereqs) return;
aug.prereqs.forEach(prereqName => {
let pa = augmentationData[prereqName];
if (!pa) return log(ns, `WARNING: Missing info about aug ${aug.name} prerequisite ${prereqName}. We likely don't have access.`);
Expand Down

0 comments on commit d953863

Please sign in to comment.