Merge pull request #2410 from IvarK/fixing-the-navigation-bugs-i-caused

This commit is contained in:
Waiting Idly 2022-03-27 04:24:58 -07:00 committed by GitHub
commit bca4218bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1384,7 +1384,7 @@ GameDatabase.celestials.navigation = (function() {
if (upgrade.isAvailableForPurchase) return [
dmdText,
`Imaginary Machines
${format(upgrade.currency.value.min(upgrade.cost), upgrade.canBeBought ? 0 : 2)}
${format(Math.min(upgrade.currency.value, upgrade.cost), upgrade.canBeBought ? 0 : 2)}
/ ${format(upgrade.cost)}`
];
@ -1455,7 +1455,7 @@ GameDatabase.celestials.navigation = (function() {
const upgrade = DarkMatterDimension(3).unlockUpgrade;
if (upgrade.canBeBought || upgrade.isBought) return 1;
if (upgrade.isAvailableForPurchase) return upgrade.currency.value / upgrade.cost;
if (!player.celestials.laitela.automation.singularity) return 0.5;
if (!player.auto.singularity.isActive) return 0.5;
return Math.clampMax(0.999, Singularity.singularitiesGained / 20);
},
node: {
@ -1482,11 +1482,11 @@ GameDatabase.celestials.navigation = (function() {
if (upgrade.isAvailableForPurchase) return [
dmdText,
`Imaginary Machines
${format(upgrade.currency.value.min(upgrade.cost), upgrade.canBeBought ? 0 : 2)}
${format(Math.min(upgrade.currency.value, upgrade.cost), upgrade.canBeBought ? 0 : 2)}
/ ${format(upgrade.cost)}`
];
if (!player.celestials.laitela.automation.singularity) return [
if (!player.auto.singularity.isActive) return [
dmdText,
"Unlock Automatic Singularities",
`${format(Currency.singularities.value)} / ${format(SingularityMilestone.autoCondense.start)}`
@ -1554,7 +1554,7 @@ GameDatabase.celestials.navigation = (function() {
if (upgrade.isAvailableForPurchase) return [
dmdText,
`Imaginary Machines
${format(upgrade.currency.value.min(upgrade.cost), upgrade.canBeBought ? 0 : 2)}
${format(Math.min(upgrade.currency.value, upgrade.cost), upgrade.canBeBought ? 0 : 2)}
/ ${format(upgrade.cost)}`
];