diff --git a/src/index.html b/src/index.html
index 73c58a4..a8b3773 100644
--- a/src/index.html
+++ b/src/index.html
@@ -26,15 +26,21 @@
+
+
Upgrades
+
+
+
+
+
+
+
diff --git a/src/index.js b/src/index.js
index 10f59b0..3faf69c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -8,15 +8,21 @@ var clickPower = 5
var SuperCursorCost = 20
var SuperCursor = 0
var clicker = 0
-var clickerCost = 100
+var clickerCost = 150
var superclicker = 0
var superclickerCost = 1000
-var Ultraclicker = 2000
-var UltraclickerCost = 0
+var Ultraclicker = 0
+var UltraclickerCost = 2000
//load the save on the website loading
window.onload = function() {
Load()
+ document.getElementById("score").innerHTML = score;
+document.getElementById("cursorCost").innerHTML = cursorCost;
+document.getElementById("cursors").innerHTML = cursors;
+document.getElementById("supercursorcost").innerHTML = SuperCursorCost;
+document.getElementById("supercursor").innerHTML = SuperCursor;
+
}
//buy cursors funciton
@@ -124,7 +130,7 @@ function BuyClickers() {
if (score >= clickerCost) {
score = score - clickerCost
clicker = clicker + 1
- clickerCost = Math.round(clickerCost * 70)
+ clickerCost = Math.round(clickerCost * 150)
}
@@ -252,15 +258,18 @@ function disableclickerbuy() {
// building upgrades
function buyclicker() {
- if (score == clickerCost) {
- clicker++
- clickPower += 5
+ if (score >= clickerCost) {
+ clicker++;
+ clickPower += 5;
+ score -= clickerCost;
+ clickerCost = Math.round(clickerCost * 1.5);
- score = score - clickerCost
- disableclickerbuy()
+ document.getElementById("score").innerHTML = score;
+ document.getElementById("clickerbuy").innerHTML = `Clicker [$${clickerCost}]`;
}
}
+
var ultraclickerbuy = document.getElementById("buyultraclickers")
function disableUltraclicker() {
@@ -270,7 +279,7 @@ function disableUltraclicker() {
}
function Ultraclickerbuys() {
- if (score == UltraclickerCost) {
+ if (score >= UltraclickerCost) {
Ultraclicker++;
clickPower += 20
score = score - UltraclickerCost