Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondbroplayz authored Nov 25, 2023
1 parent 13309a7 commit 77ef942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function cookieClick() {
localStorage.setItem("cookies", cookieCount);
document.getElementById("cookieCounter").innerHTML = "Cookies: " + cookieCount;
if (localStorage.getItem("grandmaCount")) {
var grandmaBoost = parseInt(localStorage.getItem("clickerCount")) * parseInt(localstorage.getItem("grandmaCount"))
var grandmaBoost = parseInt(cookieCount) + parseInt(localStorage.getItem("clickerCount")) * 2
cookieCount = grandmaBoost;
localStorage.setItem("cookies", cookieCount);
document.getElementById("cookieCounter").innerHTML = "Cookies: " + cookieCount;
Expand Down

0 comments on commit 77ef942

Please sign in to comment.