Merge pull request #575 from DanielNoord/hotfix

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

No files matched your search

+1 -1
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;
+1 -1
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;