From 3749af2fef2734fce6ab57ce6f3538f0e0d8f143 Mon Sep 17 00:00:00 2001 From: TJCgames Date: Thu, 7 Mar 2024 20:05:42 +0000 Subject: [PATCH] Fix a few minor bugs and display total level and rank --- js/levels.js | 2 +- js/progress.js | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/js/levels.js b/js/levels.js index 4ec3f44..1b78fbe 100644 --- a/js/levels.js +++ b/js/levels.js @@ -26,7 +26,7 @@ function getGammaCost(points = player.p.points) { return getGammaLevel(points).pow_base(1.5).mul(45).sub(30) } function getGammaEffect(points = player.p.points) { - return getGammaLevel(points).div(getGammaRankEffect(points).add(1/15)).add(1) + return getGammaLevel(points).mul(getGammaRankEffect(points).add(1/15)).add(1) } function getDeltaLevel(points = player.p.points) { if (Decimal.eq(points, 0)) return new Decimal(0) diff --git a/js/progress.js b/js/progress.js index d6a0bb9..e28fb54 100644 --- a/js/progress.js +++ b/js/progress.js @@ -4,11 +4,7 @@ addLayer("p", { position: 0, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order startData() { return { unlocked: true, - points: new Decimal(0), - best: new Decimal(0), - levels: { - epsilon: new Decimal(0), - } + points: new Decimal(0) }}, color: "#0c6949", requires: new Decimal(1), // Can be a function that takes requirement increases into account @@ -149,6 +145,7 @@ addLayer("p", { progress: { level: { content: [ + ["raw-html", () => "You have " + getTotalLevel() + " levels."], ["bar", "alpha"], ["bar", "beta"], ["bar", "gamma"], @@ -158,6 +155,7 @@ addLayer("p", { }, rank: { content: [ + ["raw-html", () => "You have " + getTotalRank() + " ranks."], ["bar", "alphaRank"], ["bar", "betaRank"], ["bar", "gammaRank"], @@ -170,6 +168,7 @@ addLayer("p", { tabFormat: [ "main-display", "prestige-button", + "resource-display", "blank", "blank", ["microtabs", "progress"],