|
1 | 1 | import Decimal, { type DecimalSource } from 'break_infinity.js' |
2 | 2 | import i18next from 'i18next' |
3 | 3 | import { getAchievementReward } from './Achievements' |
4 | | -import { AntProducers, calculateAntSpeedMultFromELO, calculateTrueAntLevelFromKey, getAntUpgradeEffect } from './Ants' |
| 4 | +import { |
| 5 | + AntProducers, |
| 6 | + AntUpgrades, |
| 7 | + calculateAntSpeedMultFromELO, |
| 8 | + calculateTrueAntLevel, |
| 9 | + getAntUpgradeEffect |
| 10 | +} from './Ants' |
5 | 11 | import { getAmbrosiaUpgradeEffects } from './BlueberryUpgrades' |
6 | 12 | import { DOMCacheGetOrSet } from './Cache/DOM' |
7 | 13 | import { |
@@ -406,7 +412,7 @@ export const allWowCubeStats: NumberStatLine[] = [ |
406 | 412 | * (1 + (0.8 * player.researches[167]) / 100) // 7x17 |
407 | 413 | * (1 + (0.7 * player.researches[182]) / 100) // 8x7 |
408 | 414 | * (1 |
409 | | - + (0.03 / 100) * player.researches[192] * calculateTrueAntLevelFromKey('mortuus')) // 8x17 |
| 415 | + + (0.03 / 100) * player.researches[192] * calculateTrueAntLevel(AntUpgrades.Mortuus)) // 8x17 |
410 | 416 | * (1 + (0.6 * player.researches[197]) / 100) // 8x22 |
411 | 417 | }, |
412 | 418 | { |
@@ -917,7 +923,7 @@ export const allOfferingStats: DecimalSourceLine[] = [ |
917 | 923 | }, |
918 | 924 | { |
919 | 925 | i18n: 'AntUpgrade', |
920 | | - stat: () => getAntUpgradeEffect('offerings').offeringMult // Ant Upgrade |
| 926 | + stat: () => getAntUpgradeEffect(AntUpgrades.Offerings).offeringMult // Ant Upgrade |
921 | 927 | }, |
922 | 928 | { |
923 | 929 | i18n: 'Brutus', |
@@ -1557,7 +1563,7 @@ export const allObtainiumStats: DecimalSourceLine[] = [ |
1557 | 1563 | }, |
1558 | 1564 | { |
1559 | 1565 | i18n: 'Ant10', |
1560 | | - stat: () => getAntUpgradeEffect('obtainium').obtainiumMult // Ant 10 |
| 1566 | + stat: () => getAntUpgradeEffect(AntUpgrades.Obtainium).obtainiumMult // Ant 10 |
1561 | 1567 | }, |
1562 | 1568 | { |
1563 | 1569 | i18n: 'CubeBonus', |
@@ -1705,7 +1711,7 @@ export const antSacrificeRewardStats: DecimalSourceLine[] = [ |
1705 | 1711 | }, |
1706 | 1712 | { |
1707 | 1713 | i18n: 'AntUpgrade11', |
1708 | | - stat: () => getAntUpgradeEffect('antSacrifice').antSacrificeMultiplier |
| 1714 | + stat: () => getAntUpgradeEffect(AntUpgrades.AntSacrifice).antSacrificeMultiplier |
1709 | 1715 | }, |
1710 | 1716 | { |
1711 | 1717 | i18n: 'Research103', |
@@ -1858,7 +1864,7 @@ export const allGlobalSpeedStats: NumberStatLine[] = [ |
1858 | 1864 | }, |
1859 | 1865 | { |
1860 | 1866 | i18n: 'Ant12', |
1861 | | - stat: () => getAntUpgradeEffect('mortuus').globalSpeed // ant 12 |
| 1867 | + stat: () => getAntUpgradeEffect(AntUpgrades.Mortuus).globalSpeed // ant 12 |
1862 | 1868 | }, |
1863 | 1869 | { |
1864 | 1870 | i18n: 'ChronosTalisman', |
@@ -2876,7 +2882,7 @@ export const positiveSalvageStats: NumberStatLine[] = [ |
2876 | 2882 | }, |
2877 | 2883 | { |
2878 | 2884 | i18n: 'AntUpgrade', |
2879 | | - stat: () => getAntUpgradeEffect('salvage').salvage // Ant Upgrade |
| 2885 | + stat: () => getAntUpgradeEffect(AntUpgrades.Salvage).salvage // Ant Upgrade |
2880 | 2886 | }, |
2881 | 2887 | { |
2882 | 2888 | i18n: 'CubeBlessing', |
@@ -2940,7 +2946,7 @@ export const antSpeedStats: DecimalSourceLine[] = [ |
2940 | 2946 | }, |
2941 | 2947 | { |
2942 | 2948 | i18n: 'AntUpgrade1', |
2943 | | - stat: () => getAntUpgradeEffect('antSpeed').antSpeed // Ant Upgrade 1 |
| 2949 | + stat: () => getAntUpgradeEffect(AntUpgrades.AntSpeed).antSpeed // Ant Upgrade 1 |
2944 | 2950 | }, |
2945 | 2951 | { |
2946 | 2952 | i18n: 'DiamondUpgrade19', |
|
0 commit comments