From 7f472e3b0a46230c3f2fea1965e4008acd4f60a5 Mon Sep 17 00:00:00 2001 From: IvarK Date: Sat, 9 Feb 2019 21:48:03 +0200 Subject: [PATCH] fix stuff caused by TT Decimal change --- POCVisualChanges/styles.css | 9 ++++----- javascripts/core/celestials/V.js | 4 ++-- javascripts/core/timestudies.js | 4 ++-- javascripts/game.js | 1 - 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/POCVisualChanges/styles.css b/POCVisualChanges/styles.css index dfb8f8fc9..ab6f16a48 100644 --- a/POCVisualChanges/styles.css +++ b/POCVisualChanges/styles.css @@ -116,13 +116,12 @@ } .quote { - width: 80%; - margin: 10px auto; - border: 1px solid var(--color-accent-2); - border-radius: 5px; + width: 100%; + margin-bottom: 10px; + border-bottom: 1px solid var(--color-accent-2); color: white; text-align: center; - padding: 6px 0; + padding: 8px 0; } .subtabs { diff --git a/javascripts/core/celestials/V.js b/javascripts/core/celestials/V.js index 8efd29f87..8ca5c0ba2 100644 --- a/javascripts/core/celestials/V.js +++ b/javascripts/core/celestials/V.js @@ -129,7 +129,7 @@ const V_UNLOCKS = { id: 1, reward: "Achievement multiplier affects auto EC completion time.", description: "Have 10 V-achievements", - effect: () => Math.pow(player.achPow, getAdjustedGlyphEffect("effarigachievement")), + effect: () => Math.pow(player.achPow.toNumber(), getAdjustedGlyphEffect("effarigachievement")), format: (x) => shorten(x) + "x", requirement: () => V.totalRunUnlocks >= 10 }, @@ -164,7 +164,7 @@ const V = { }, checkForUnlocks() { - if (V_UNLOCKS.MAIN_UNLOCK.requirement()) { + if (V_UNLOCKS.MAIN_UNLOCK.requirement() && !V.has(V_UNLOCKS.MAIN_UNLOCK)) { player.celestials.v.unlocks.push(V_UNLOCKS.MAIN_UNLOCK.id); GameUI.notify.success(V_UNLOCKS.MAIN_UNLOCK.description); } diff --git a/javascripts/core/timestudies.js b/javascripts/core/timestudies.js index c5e89a544..c31b8cc59 100644 --- a/javascripts/core/timestudies.js +++ b/javascripts/core/timestudies.js @@ -76,7 +76,7 @@ function buyTimeStudy(name, cost, check) { } else if (canBuyLocked(name, cost)) { player.celestials.v.additionalStudies++ player.timestudy.studies.push(name) - player.timestudy.theorem -= cost + player.timestudy.theorem = player.timestudy.theorem.minus(cost) GameCache.timeStudies.invalidate(); } else return false @@ -223,7 +223,7 @@ function studyIsLocked(name) { } function canBuyLocked(name, cost) { - if (player.timestudy.theorem < cost) return false + if (player.timestudy.theorem.lt(cost)) return false if (!studyIsLocked(name)) return false if (!V.canBuyLockedPath()) return false diff --git a/javascripts/game.js b/javascripts/game.js index 675c9c48d..dbad01700 100644 --- a/javascripts/game.js +++ b/javascripts/game.js @@ -1117,7 +1117,6 @@ function gameLoop(diff, options = {}) { player.dilation.freeGalaxies = Math.min(player.dilation.baseFreeGalaxies * freeGalaxyMult, 1000) + Math.max(player.dilation.baseFreeGalaxies * freeGalaxyMult - 1000, 0) / freeGalaxyMult; if (!player.celestials.teresa.run) player.timestudy.theorem = player.timestudy.theorem.plus(getAdjustedGlyphEffect("dilationTTgen")*diff/1000) - if (player.infinityPoints.gt(0) || player.eternities !== 0) { document.getElementById("infinitybtn").style.display = "block"; }