mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2025-02-16 07:30:20 +00:00
Add cel7 upgrade for EM40
This commit is contained in:
parent
98cddfcd60
commit
8908a05c4b
@ -443,4 +443,5 @@ export const PelleUpgrade = mapGameDataToObject(
|
||||
);
|
||||
|
||||
PelleUpgrade.rebuyables = PelleUpgrade.all.filter(u => u.isRebuyable);
|
||||
PelleUpgrade.singles = PelleUpgrade.all.filter(u => !u.isRebuyable);
|
||||
// An upgrade was added post-release; it's simpler to just sort them by cost rather than to migrate the internal data
|
||||
PelleUpgrade.singles = PelleUpgrade.all.filter(u => !u.isRebuyable).sort((a, b) => a.cost - b.cost);
|
||||
|
@ -19,7 +19,10 @@ function addReplicantiGalaxies(newGalaxies) {
|
||||
if (newGalaxies > 0) {
|
||||
player.replicanti.galaxies += newGalaxies;
|
||||
player.requirementChecks.eternity.noRG = false;
|
||||
if (!EternityMilestone.replicantiNoReset.isReached || Pelle.isDoomed) {
|
||||
const keepResources = Pelle.isDoomed
|
||||
? PelleUpgrade.replicantiGalaxyEM40.canBeApplied
|
||||
: EternityMilestone.replicantiNoReset.isReached;
|
||||
if (!keepResources) {
|
||||
player.dimensionBoosts = 0;
|
||||
softReset(0, true, true);
|
||||
}
|
||||
|
@ -189,5 +189,11 @@ export const pelleUpgrades = {
|
||||
description: "Tachyon Particles no longer reset on Armageddon",
|
||||
cost: 1e50,
|
||||
formatCost,
|
||||
},
|
||||
replicantiGalaxyEM40: {
|
||||
id: 22,
|
||||
description: "Replicanti Galaxies no longer reset anything they normally reset",
|
||||
cost: 1e30,
|
||||
formatCost,
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user