From 0ba046a84bc9764ce69fdfc0f8d60408238780c5 Mon Sep 17 00:00:00 2001
From: TJCgames <minebloxdash@gmail.com>
Date: Thu, 7 Mar 2024 20:22:42 +0000
Subject: [PATCH] Bars on lockdown

---
 js/progress.js | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/js/progress.js b/js/progress.js
index 7680d38..361bc6b 100644
--- a/js/progress.js
+++ b/js/progress.js
@@ -56,7 +56,8 @@ addLayer("p", {
                 return "Beta - Level " + getBetaLevel() + " (" + player[this.layer].points + "/" + getBetaCost()
                     + ")<br>Effect: x" + getBetaEffect() + " to point gen."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getAlphaLevel().gte(1) }
         },
         betaRank: {
             direction: RIGHT,
@@ -67,7 +68,8 @@ addLayer("p", {
                 return "Beta - Rank " + getBetaRank() + " (" + getBetaLevel() + "/" + getBetaRankCost()
                     + ")<br>Effect: +" + getBetaRankEffect() + " to Beta base."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getAlphaLevel().gte(1) }
         },
         gamma: {
             direction: RIGHT,
@@ -78,7 +80,8 @@ addLayer("p", {
                 return "Gamma - Level " + getGammaLevel() + " (" + player[this.layer].points + "/" + getGammaCost()
                     + ")<br>Effect: x" + getGammaEffect() + " to point gen."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getBetaLevel().gte(1) }
         },
         gammaRank: {
             direction: RIGHT,
@@ -89,7 +92,8 @@ addLayer("p", {
                 return "Gamma - Rank " + getGammaRank() + " (" + getGammaLevel() + "/" + getGammaRankCost()
                     + ")<br>Effect: +" + getGammaRankEffect() + " to Gamma base."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getBetaLevel().gte(1) }
         },
         delta: {
             direction: RIGHT,
@@ -100,7 +104,8 @@ addLayer("p", {
                 return "Delta - Level " + getDeltaLevel() + " (" + player[this.layer].points + "/" + getDeltaCost()
                     + ")<br>Effect: x" + getDeltaEffect() + " to point gen."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getGammaLevel().gte(1) }
         },
         deltaRank: {
             direction: RIGHT,
@@ -111,7 +116,8 @@ addLayer("p", {
                 return "Delta - Rank " + getDeltaRank() + " (" + getDeltaLevel() + "/" + getDeltaRankCost()
                     + ")<br>Effect: +" + getDeltaRankEffect() + " to Delta base."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getGammaLevel().gte(1) }
         },
         epsilon: {
             direction: RIGHT,
@@ -122,7 +128,8 @@ addLayer("p", {
                 return "Epsilon - Level " + getEpsilonLevel() + " (" + player[this.layer].points + "/" + getEpsilonCost()
                     + ")<br>Effect: ^" + getEpsilonEffect() + " to point gen."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getDeltaLevel().gte(1) }
         },
         epsilonRank: {
             direction: RIGHT,
@@ -133,7 +140,8 @@ addLayer("p", {
                 return "Epsilon - Rank " + getEpsilonRank() + " (" + getEpsilonLevel() + "/" + getEpsilonRankCost()
                     + ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon base."
             },
-            fillStyle: {backgroundColor: "#0c6949"}
+            fillStyle: {backgroundColor: "#0c6949"},
+            unlocked() { return getDeltaLevel().gte(1) }
         },
     },
     microtabs: {
@@ -156,7 +164,8 @@ addLayer("p", {
                     ["bar", "gammaRank"],
                     ["bar", "deltaRank"],
                     ["bar", "epsilonRank"]
-                ]
+                ],
+                unlocked() { return getAlphaLevel().gte(15) }
             }
         }
     },