mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
fix stuff caused by TT Decimal change
This commit is contained in:
parent
15b17b82a9
commit
7f472e3b0a
@ -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 {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user