Skip to content

Commit

Permalink
Merge pull request #575 from DanielNoord/hotfix
Browse files Browse the repository at this point in the history
Fix missing upgrades display #574
  • Loading branch information
DanielNoord authored Feb 18, 2021
2 parents f5ea276 + c4c95ea commit e9ced31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CookieMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3911,7 +3911,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;
Expand Down
2 changes: 1 addition & 1 deletion src/Disp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,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;
Expand Down

0 comments on commit e9ced31

Please sign in to comment.