Merge pull request #575 from DanielNoord/hotfix

Fix missing upgrades display #574
This commit is contained in:
Daniël van Noord
2021-02-18 21:30:43 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -3911,7 +3911,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;

View File

@@ -2727,7 +2727,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;