mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Fix Max TD bug with telemechanical lock
This commit is contained in:
parent
3ee552e8a4
commit
98cddfcd60
|
@ -92,9 +92,10 @@ export function maxAllTimeDimensions() {
|
|||
}
|
||||
|
||||
// Loop buying the cheapest dimension possible; explicit infinite loops make me nervous
|
||||
const unlockedDimensions = TimeDimensions.all.filter(d => d.isUnlocked);
|
||||
const tierCheck = tier => (RealityUpgrade(13).isLockingMechanics ? tier < 5 : true);
|
||||
const purchasableDimensions = TimeDimensions.all.filter(d => d.isUnlocked && tierCheck(d.tier));
|
||||
for (let stop = 0; stop < 1000; stop++) {
|
||||
const cheapestDim = unlockedDimensions.reduce((a, b) => (b.cost.gte(a.cost) ? a : b));
|
||||
const cheapestDim = purchasableDimensions.reduce((a, b) => (b.cost.gte(a.cost) ? a : b));
|
||||
if (!buySingleTimeDimension(cheapestDim.tier, true)) break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user