Added a pop all button for wrinklers (Issue #24)

This commit is contained in:
Aktanusa
2014-09-27 17:15:25 -04:00
parent 47b6d4d83f
commit 89e8ec86db
2 changed files with 18 additions and 2 deletions

View File

@@ -1048,7 +1048,15 @@ CM.Disp.AddMenuStats = function(title) {
}
sucked *= 1.1;
if (Game.Has('Wrinklerspawn')) sucked *= 1.05;
stats.appendChild(listing('Rewards of Popping', document.createTextNode(Beautify(sucked))));
var popAllFrag = document.createDocumentFragment();
popAllFrag.appendChild(document.createTextNode(Beautify(sucked) + ' '));
var popAllA = document.createElement('a');
popAllA.textContent = 'Pop All';
popAllA.className = 'option';
popAllA.onclick = function() {Game.CollectWrinklers();};
popAllFrag.appendChild(popAllA);
stats.appendChild(listing('Rewards of Popping', popAllFrag));
}
}