mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-25 05:32:17 +00:00
Change cel6 dimension disabling from multiplier to production
This commit is contained in:
parent
80609b2f39
commit
af8ea551cb
@ -54,7 +54,6 @@ export function antimatterDimensionCommonMultiplier() {
|
||||
|
||||
export function getDimensionFinalMultiplierUncached(tier) {
|
||||
if (tier < 1 || tier > 8) throw new Error(`Invalid Antimatter Dimension tier ${tier}`);
|
||||
if (Laitela.isRunning && tier > Laitela.maxAllowedDimension) return DC.D0;
|
||||
if (NormalChallenge(10).isRunning && tier > 6) return DC.D1;
|
||||
if (EternityChallenge(11).isRunning) {
|
||||
return Currency.infinityPower.value.pow(
|
||||
@ -564,6 +563,7 @@ class AntimatterDimensionState extends DimensionState {
|
||||
|
||||
get productionPerSecond() {
|
||||
const tier = this.tier;
|
||||
if (Laitela.isRunning && tier > Laitela.maxAllowedDimension) return DC.D0;
|
||||
let amount = this.totalAmount;
|
||||
if (NormalChallenge(12).isRunning) {
|
||||
if (tier === 2) amount = amount.pow(1.6);
|
||||
|
@ -125,6 +125,10 @@ class InfinityDimensionState extends DimensionState {
|
||||
}
|
||||
|
||||
get productionPerSecond() {
|
||||
if (EternityChallenge(2).isRunning || EternityChallenge(10).isRunning ||
|
||||
(Laitela.isRunning && this.tier > Laitela.maxAllowedDimension)) {
|
||||
return DC.D0;
|
||||
}
|
||||
let production = this.amount;
|
||||
if (EternityChallenge(11).isRunning) {
|
||||
return production;
|
||||
@ -137,11 +141,6 @@ class InfinityDimensionState extends DimensionState {
|
||||
|
||||
get multiplier() {
|
||||
const tier = this.tier;
|
||||
|
||||
if (EternityChallenge(2).isRunning || EternityChallenge(10).isRunning ||
|
||||
(Laitela.isRunning && this.tier > Laitela.maxAllowedDimension)) {
|
||||
return DC.D0;
|
||||
}
|
||||
if (EternityChallenge(11).isRunning) return DC.D1;
|
||||
let mult = GameCache.infinityDimensionCommonMultiplier.value
|
||||
.timesEffectsOf(
|
||||
|
@ -182,11 +182,6 @@ class TimeDimensionState extends DimensionState {
|
||||
get multiplier() {
|
||||
const tier = this._tier;
|
||||
|
||||
if (EternityChallenge(1).isRunning || EternityChallenge(10).isRunning ||
|
||||
(Laitela.isRunning && tier > Laitela.maxAllowedDimension)) {
|
||||
return DC.D0;
|
||||
}
|
||||
|
||||
if (EternityChallenge(11).isRunning) return DC.D1;
|
||||
let mult = GameCache.timeDimensionCommonMultiplier.value
|
||||
.timesEffectsOf(
|
||||
@ -221,6 +216,10 @@ class TimeDimensionState extends DimensionState {
|
||||
}
|
||||
|
||||
get productionPerSecond() {
|
||||
if (EternityChallenge(1).isRunning || EternityChallenge(10).isRunning ||
|
||||
(Laitela.isRunning && this.tier > Laitela.maxAllowedDimension)) {
|
||||
return DC.D0;
|
||||
}
|
||||
if (EternityChallenge(11).isRunning) {
|
||||
return this.amount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user