Fix missing upgrades display on dev branch

This commit is contained in:
Daniël van Noord
2021-02-18 21:32:58 +01:00
parent b7c47bbe6c
commit 1ebc8cacc6
2 changed files with 2 additions and 2 deletions

View File

@@ -2775,7 +2775,7 @@ CM.Disp.AddMissingUpgrades = function() {
let titlefrag = document.createElement('div');
titlefrag.innerHTML = '<b>Missing normal upgrades:</b> '+ normalUpgradesMissing + '/' + (Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length) + ' (' + Math.floor((normalUpgradesMissing / ( Game.UpgradesByPool[""].length + Game.UpgradesByPool.tech.length)) * 100) + '%)';
title.appendChild(titlefrag);
menuSection.insertBefore(title, l('menu').children[6].childNodes[3]);
menuSection.insertBefore(title, menuSection.childNodes[3]);
let upgrades = document.createElement('div');
upgrades.className = "listing crateBox";
upgrades.innerHTML = CM.Cache.MissingUpgrades;