Skip to content

Commit

Permalink
Changed 'Pop All' button to pop only normal Wrinklers (Issue #140 & #171
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Aktanusa committed Apr 25, 2018
1 parent f6164a9 commit 902c866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CookieMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,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;
}
}
Expand Down Expand Up @@ -1861,7 +1861,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);
Expand Down
4 changes: 2 additions & 2 deletions src/Disp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 902c866

Please sign in to comment.