From 2b9a8c0d48852e744b6145cee85d0252fef08d8b Mon Sep 17 00:00:00 2001 From: RobloxEnderman Date: Mon, 22 Apr 2024 21:25:34 -0700 Subject: [PATCH] Add gambling.js script to index.html --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index dd4f320..483e8b8 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ Clicker Game + @@ -60,7 +61,7 @@

0

showMessage("Insufficient funds!"); } }); - + function updateCounter() { count += clickValue; counterEl.textContent = count; @@ -75,8 +76,8 @@

0

} function confirmReset() { - const answer = prompt("WARNING: THIS WILL DELETE YOUR SAVE FILE AND START OVER!!To confirm the reset, what is the result of 10 + 5?"); - if (answer === "15") { + const answer = prompt("WARNING: THIS WILL DELETE YOUR SAVE FILE AND START OVER!!To confirm the reset, what is the result of 100 + 5?"); + if (answer === "105") { resetGame(); } else { showMessage("Incorrect answer. Reset not confirmed.");