mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:02:53 +00:00
Force 5xEP to purchase before TDs
This commit is contained in:
parent
afd716dd3c
commit
7fff9bc52e
@ -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();
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ class TimeDimensionAutobuyerState extends IntervaledAutobuyerState {
|
||||
|
||||
tick() {
|
||||
applyEU2();
|
||||
Autobuyer.epMult.tick();
|
||||
const tier = this.tier;
|
||||
if (!TimeDimension(tier).isAvailableForPurchase) return;
|
||||
super.tick();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user