Changed 'Pop All' button to pop only normal Wrinklers (Issue #140 & #171)

This commit is contained in:
Aktanusa
2018-04-24 20:39:58 -04:00
parent f6164a9b85
commit 902c866f18
2 changed files with 4 additions and 4 deletions

View File

@@ -906,7 +906,7 @@ CM.Disp.UpdateTitle = function() {
CM.Disp.CollectWrinklers = function() {
for (var i in Game.wrinklers) {
if (Game.wrinklers[i].sucked > 0) {
if (Game.wrinklers[i].sucked > 0 && Game.wrinklers[i].type == 0) {
Game.wrinklers[i].hp = 0;
}
}
@@ -1311,7 +1311,7 @@ CM.Disp.AddMenuStats = function(title) {
var popAllFrag = document.createDocumentFragment();
popAllFrag.appendChild(document.createTextNode(Beautify(CM.Cache.WrinkBank) + ' '));
var popAllA = document.createElement('a');
popAllA.textContent = 'Pop All';
popAllA.textContent = 'Pop All Normal';
popAllA.className = 'option';
popAllA.onclick = function() { CM.Disp.CollectWrinklers(); };
popAllFrag.appendChild(popAllA);