Merge pull request #577 from DanielNoord/hotfix/dev

Fix missing upgrades display on dev branch
This commit is contained in:
Daniël van Noord
2021-02-18 21:34:07 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2775,7 +2775,7 @@ CM.Disp.AddMissingUpgrades = function() {
let titlefrag = document.createElement('div'); 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) + '%)'; 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); title.appendChild(titlefrag);
menuSection.insertBefore(title, l('menu').children[6].childNodes[3]); menuSection.insertBefore(title, menuSection.childNodes[3]);
let upgrades = document.createElement('div'); let upgrades = document.createElement('div');
upgrades.className = "listing crateBox"; upgrades.className = "listing crateBox";
upgrades.innerHTML = CM.Cache.MissingUpgrades; upgrades.innerHTML = CM.Cache.MissingUpgrades;