Force 5xEP to purchase before TDs

This commit is contained in:
SpectralFlame 2023-01-30 04:47:54 -06:00 committed by cyip92
parent afd716dd3c
commit 7fff9bc52e
3 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,11 @@ Autobuyer.epMult = new class EPMultAutobuyerState extends AutobuyerState {
}
tick() {
// While the active check is normally automatically handled with the global autobuyer ticking method, we also
// call this from the TD autobuyers in order to make sure this is executed before TDs are purchased. Simply
// reordering the autobuyer call order is undesirable because much of the codebase relies on autobuyers being
// grouped as they are, and many other autobuyers in the 5xEP group must execute *after* dimensions
if (!this.isActive) return;
applyEU2();
EternityUpgrade.epMult.buyMax();
}

View File

@ -35,6 +35,7 @@ class TimeDimensionAutobuyerState extends IntervaledAutobuyerState {
tick() {
applyEU2();
Autobuyer.epMult.tick();
const tier = this.tier;
if (!TimeDimension(tier).isAvailableForPurchase) return;
super.tick();

View File

@ -166,7 +166,7 @@ GameStorage.migrations = {
// makes sure that older saves maintain the same settings after this shift
if (player.reality.autoSort !== 0) player.reality.autoSort++;
},
16: player => {
15: player => {
// Added additional resource tracking in last 10 prestige records and adjusted data format to be more consistent
// by reordering to be [game time, real time, prestige currency, prestige count, challenge, ...(other resources)]
// Also fixes a migration bug where values could be undefined or null by assigning defaults when necessary