reverse black op order

This commit is contained in:
Olivier Gagnon 2019-03-13 13:51:34 -04:00 committed by danielyxie
parent f88c585714
commit fa14bb5362

@ -2166,12 +2166,14 @@ Bladeburner.prototype.createBlackOpsContent = function() {
return (a.reqdRank - b.reqdRank);
});
for (var i = 0; i < blackops.length; ++i) {
console.log(blackops);
for (var i = blackops.length-1; i >= 0 ; --i) {
console.log(i)
if (this.blackops[[blackops[i].name]] == null && i !== 0 && this.blackops[[blackops[i-1].name]] == null) {continue;} // If this one nor the next are completed then this isn't unlocked yet.
DomElems.blackops[blackops[i].name] = createElement("div", {
class:"bladeburner-action", name:blackops[i].name
});
DomElems.actionsAndSkillsList.appendChild(DomElems.blackops[blackops[i].name]);
if (this.blackops[[blackops[i].name]] == null) {break;} //Can't be found in completed blackops
}
}