Update dependencies and remove unneeded things. This allows building on node v22. Also rely on configs for eslint/prettier so CI and command line runs are guaranteed to be consistent.
This commit is contained in:
committed by
Daniël van Noord
parent
9e98208c19
commit
a1aaa3de8f
@@ -1,11 +1,11 @@
|
||||
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData';
|
||||
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData.js';
|
||||
import {
|
||||
ChoEggDiff, // eslint-disable-line no-unused-vars
|
||||
ClicksDiff, // eslint-disable-line no-unused-vars
|
||||
CookiesDiff, // eslint-disable-line no-unused-vars
|
||||
WrinkDiff, // eslint-disable-line no-unused-vars
|
||||
WrinkFattestDiff, // eslint-disable-line no-unused-vars
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* @class
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheAverageClicks,
|
||||
CacheAverageCPS,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
CookiesDiff,
|
||||
WrinkDiff,
|
||||
WrinkFattestDiff,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches two variables related average CPS and Clicks
|
||||
@@ -89,7 +89,6 @@ export default function CacheAvgCPS() {
|
||||
CacheAverageGainBank + CacheAverageGainWrink + (choEgg ? CacheAverageGainChoEgg : 0);
|
||||
} else CacheAvgCPSWithChoEgg = CacheAverageCPS;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
CacheAverageClicks = ClicksDiff.calcAverage(
|
||||
ClickTimes[Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.AvgClicksHist],
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SimObjects } from '../../Sim/VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult } from '../VariablesAndData';
|
||||
import { SimObjects } from '../../Sim/VariablesAndData.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheCurrWrinklerCount, CacheCurrWrinklerCPSMult } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches the current Wrinkler CPS multiplier
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import CalcNoGoldSwitchCPS from '../../Sim/Calculations/NoGoldenSwitchCalc';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheNoGoldSwitchCookiesPS } from '../VariablesAndData';
|
||||
import CalcNoGoldSwitchCPS from '../../Sim/Calculations/NoGoldenSwitchCalc.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheNoGoldSwitchCookiesPS } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function calculates CPS without the Golden Switch as it might be needed in other functions
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import SellBuildingsForChoEgg from '../../Sim/SimulationEvents/SellBuildingForChoEgg';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheSellForChoEgg } from '../VariablesAndData';
|
||||
import SellBuildingsForChoEgg from '../../Sim/SimulationEvents/SellBuildingForChoEgg.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheSellForChoEgg } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches the reward for selling the Chocolate egg
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { ClickTimes } from '../Disp/VariablesAndData';
|
||||
import { CMAvgQueue, InitCookiesDiff } from './CPS/AverageQueue';
|
||||
import CacheAvgCPS from './CPS/CPS';
|
||||
import CacheDragonAuras from './Dragon/CacheDragonAuras';
|
||||
import CachePP from './PP/PP';
|
||||
import { CacheBuildingsPrices, CacheIncome } from './PriceAndIncome/PriceAndIncome';
|
||||
import { CacheChain } from './Stats/ChainCookies';
|
||||
import CacheHeavenlyChipsPS from './Stats/HeavenlyChips';
|
||||
import CacheAllMissingUpgrades from './Stats/MissingUpgrades';
|
||||
import CacheSeasonSpec from './Stats/Reindeer';
|
||||
import { CacheGoldenAndWrathCookiesMults, CacheStatsCookies } from './Stats/Stats';
|
||||
import AllAmountTillNextAchievement from './TillNextAchievement/AllAmountTillNextAchievement';
|
||||
import { CacheAverageCookiesFromClicks, HeavenlyChipsDiff } from './VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import CacheWrinklers from './Wrinklers/Wrinklers';
|
||||
import { ClickTimes } from '../Disp/VariablesAndData.js';
|
||||
import { CMAvgQueue, InitCookiesDiff } from './CPS/AverageQueue.js';
|
||||
import CacheAvgCPS from './CPS/CPS.js';
|
||||
import CacheDragonAuras from './Dragon/CacheDragonAuras.js';
|
||||
import CachePP from './PP/PP.js';
|
||||
import { CacheBuildingsPrices, CacheIncome } from './PriceAndIncome/PriceAndIncome.js';
|
||||
import { CacheChain } from './Stats/ChainCookies.js';
|
||||
import CacheHeavenlyChipsPS from './Stats/HeavenlyChips.js';
|
||||
import CacheAllMissingUpgrades from './Stats/MissingUpgrades.js';
|
||||
import CacheSeasonSpec from './Stats/Reindeer.js';
|
||||
import { CacheGoldenAndWrathCookiesMults, CacheStatsCookies } from './Stats/Stats.js';
|
||||
import AllAmountTillNextAchievement from './TillNextAchievement/AllAmountTillNextAchievement.js';
|
||||
import { CacheAverageCookiesFromClicks, HeavenlyChipsDiff } from './VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import CacheWrinklers from './Wrinklers/Wrinklers.js';
|
||||
|
||||
/**
|
||||
* This functions runs all cache-functions to generate all "full" cache
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import FormatTime from '../Disp/BeautifyAndFormatting/FormatTime';
|
||||
import GetCPS from '../Disp/HelperFunctions/GetCPS';
|
||||
import CacheAvgCPS from './CPS/CPS';
|
||||
import CacheCurrWrinklerCPS from './CPS/CurrWrinklerCPS';
|
||||
import CachePP from './PP/PP';
|
||||
import CacheHeavenlyChipsPS from './Stats/HeavenlyChips';
|
||||
import AllAmountTillNextAchievement from './TillNextAchievement/AllAmountTillNextAchievement';
|
||||
import { CacheTimeTillNextPrestige } from './VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import CacheWrinklers from './Wrinklers/Wrinklers';
|
||||
import FormatTime from '../Disp/BeautifyAndFormatting/FormatTime.js';
|
||||
import GetCPS from '../Disp/HelperFunctions/GetCPS.js';
|
||||
import CacheAvgCPS from './CPS/CPS.js';
|
||||
import CacheCurrWrinklerCPS from './CPS/CurrWrinklerCPS.js';
|
||||
import CachePP from './PP/PP.js';
|
||||
import CacheHeavenlyChipsPS from './Stats/HeavenlyChips.js';
|
||||
import AllAmountTillNextAchievement from './TillNextAchievement/AllAmountTillNextAchievement.js';
|
||||
import { CacheTimeTillNextPrestige } from './VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import CacheWrinklers from './Wrinklers/Wrinklers.js';
|
||||
|
||||
/**
|
||||
* This functions caches variables that are needed every loop
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CacheDragonAura, CacheDragonAura2 } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import { CacheDragonAura, CacheDragonAura2 } from '../VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
|
||||
/**
|
||||
* This functions caches the currently selected Dragon Auras
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/** Functions related to the Dragon */
|
||||
|
||||
import Beautify from '../../Disp/BeautifyAndFormatting/Beautify';
|
||||
import CopyData from '../../Sim/SimulationData/CopyData';
|
||||
import { SimDoSims, SimObjects } from '../../Sim/VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheCostDragonUpgrade, CacheLastDragonLevel } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import Beautify from '../../Disp/BeautifyAndFormatting/Beautify.js';
|
||||
import CopyData from '../../Sim/SimulationData/CopyData.js';
|
||||
import { SimDoSims, SimObjects } from '../../Sim/VariablesAndData.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheCostDragonUpgrade, CacheLastDragonLevel } from '../VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
|
||||
/**
|
||||
* This functions caches the current cost of upgrading the dragon level so it can be displayed in the tooltip
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import GetWrinkConfigBank from '../../Disp/HelperFunctions/GetWrinkConfigBank';
|
||||
import { ColourGray } from '../../Disp/VariablesAndData';
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import GetWrinkConfigBank from '../../Disp/HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { ColourGray } from '../../Disp/VariablesAndData.js';
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheMinPP,
|
||||
CacheMinPPBulk,
|
||||
@@ -9,8 +9,8 @@ import {
|
||||
CacheObjects10,
|
||||
CacheObjects100,
|
||||
CachePPArray,
|
||||
} from '../VariablesAndData';
|
||||
import ColourOfPP from './ColourOfPP';
|
||||
} from '../VariablesAndData.js';
|
||||
import ColourOfPP from './ColourOfPP.js';
|
||||
|
||||
/**
|
||||
* This functions caches the buildings of bulk-buy mode when PP is compared against optimal single-purchase building
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import GetCPS from '../../Disp/HelperFunctions/GetCPS';
|
||||
import GetCPS from '../../Disp/HelperFunctions/GetCPS.js';
|
||||
import {
|
||||
ColourBlue,
|
||||
ColourGray,
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
ColourPurple,
|
||||
ColourRed,
|
||||
ColourYellow,
|
||||
} from '../../Disp/VariablesAndData';
|
||||
import { CacheMinPP, CachePPArray } from '../VariablesAndData';
|
||||
} from '../../Disp/VariablesAndData.js';
|
||||
import { CacheMinPP, CachePPArray } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions return the colour assosciated with the given pp value
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
/**
|
||||
* Section: Functions related to caching PP */
|
||||
|
||||
import { CacheObjects1, CacheObjects10, CacheObjects100, CacheUpgrades } from '../VariablesAndData';
|
||||
import CacheBuildingsPP from './Building';
|
||||
import CacheUpgradePP from './Upgrade';
|
||||
import {
|
||||
CacheObjects1,
|
||||
CacheObjects10,
|
||||
CacheObjects100,
|
||||
CacheUpgrades,
|
||||
} from '../VariablesAndData.js';
|
||||
import CacheBuildingsPP from './Building.js';
|
||||
import CacheUpgradePP from './Upgrade.js';
|
||||
|
||||
/**
|
||||
* This functions caches the PP of each building and upgrade and stores it in the cache
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import GetWrinkConfigBank from '../../Disp/HelperFunctions/GetWrinkConfigBank';
|
||||
import { CacheUpgrades } from '../VariablesAndData';
|
||||
import ColourOfPP from './ColourOfPP';
|
||||
import GetWrinkConfigBank from '../../Disp/HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { CacheUpgrades } from '../VariablesAndData.js';
|
||||
import ColourOfPP from './ColourOfPP.js';
|
||||
|
||||
/**
|
||||
* This functions caches the PP of each building it saves all date in CM.Cache.Upgrades
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import CalculateChangeGod from '../../Sim/SimulationEvents/GodChange';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheGods } from '../VariablesAndData';
|
||||
import CalculateChangeGod from '../../Sim/SimulationEvents/GodChange.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheGods } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches the cps effect of each God in slot 1, 2 or 3
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/** Section: Functions related to caching income */
|
||||
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
||||
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome';
|
||||
import BuyUpgradesBonusIncome from '../../Sim/SimulationEvents/BuyUpgrades';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding.js';
|
||||
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome.js';
|
||||
import BuyUpgradesBonusIncome from '../../Sim/SimulationEvents/BuyUpgrades.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheAverageGainBank,
|
||||
CacheAverageGainWrink,
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
CacheObjects100,
|
||||
CacheObjectsNextAchievement,
|
||||
CacheUpgrades,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions starts the calculation/simulation of the bonus income of buildings
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import GetCPSBuffMult from '../CPS/GetCPSBuffMult';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import GetCPSBuffMult from '../CPS/GetCPSBuffMult.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheChainFrenzyMaxReward,
|
||||
CacheChainFrenzyRequired,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
CacheGoldenCookiesMult,
|
||||
CacheNoGoldSwitchCookiesPS,
|
||||
CacheWrathCookiesMult,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions calculates the max possible payout given a set of variables
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheHCPerSecond,
|
||||
CacheLastHeavenlyCheck,
|
||||
CacheLastHeavenlyChips,
|
||||
HeavenlyChipsDiff,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches the heavenly chips per second in the last five seconds
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { crateMissing } from '../../Disp/MenuSections/Statistics/CreateMissingUpgrades';
|
||||
import { crateMissing } from '../../Disp/MenuSections/Statistics/CreateMissingUpgrades.js';
|
||||
import {
|
||||
CacheMissingUpgrades, // eslint-disable-line no-unused-vars
|
||||
CacheMissingUpgradesCookies, // eslint-disable-line no-unused-vars
|
||||
CacheMissingUpgradesPrestige, // eslint-disable-line no-unused-vars
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches variables related to missing upgrades
|
||||
@@ -35,12 +35,10 @@ export default function CacheAllMissingUpgrades() {
|
||||
let str = '';
|
||||
|
||||
str += crateMissing(me);
|
||||
/* eslint-disable no-unused-vars */
|
||||
if (me.pool === 'prestige') CacheMissingUpgradesPrestige += str;
|
||||
else if (me.pool === 'cookie') CacheMissingUpgradesCookies += str;
|
||||
else if (me.pool !== 'toggle' && me.pool !== 'unused' && me.pool !== 'debug')
|
||||
CacheMissingUpgrades += str;
|
||||
/* eslint-enable no-unused-vars */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheSeaSpec } from '../VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheSeaSpec } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches the reward of popping a reindeer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/** Functions related to Caching stats */
|
||||
|
||||
import SimHas from '../../Sim/ReplacedGameFunctions/SimHas';
|
||||
import GetCPSBuffMult from '../CPS/GetCPSBuffMult';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import SimHas from '../../Sim/ReplacedGameFunctions/SimHas.js';
|
||||
import GetCPSBuffMult from '../CPS/GetCPSBuffMult.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheConjure,
|
||||
CacheConjureReward,
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
CacheLuckyWrathRewardFrenzy,
|
||||
CacheNoGoldSwitchCookiesPS,
|
||||
CacheWrathCookiesMult,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches variables related to the stats page
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { CacheObjectsNextAchievement } from '../VariablesAndData';
|
||||
import IndividualAmountTillNextAchievement from './IndividualAmountTillNextAchievement';
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import { CacheObjectsNextAchievement } from '../VariablesAndData.js';
|
||||
import IndividualAmountTillNextAchievement from './IndividualAmountTillNextAchievement.js';
|
||||
|
||||
/**
|
||||
* This functions caches the amount of buildings needed till next achievement
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome';
|
||||
import { SimAchievementsOwned } from '../../Sim/VariablesAndData';
|
||||
import BuyBuildingsBonusIncome from '../../Sim/SimulationEvents/BuyBuildingBonusIncome.js';
|
||||
import { SimAchievementsOwned } from '../../Sim/VariablesAndData.js';
|
||||
|
||||
export default function IndividualAmountTillNextAchievement(building) {
|
||||
const AchievementsAtStart = Game.AchievementsOwned;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/** Caches data related to Wrinklers */
|
||||
|
||||
import { SimObjects } from '../../Sim/VariablesAndData';
|
||||
import FillCMDCache from '../FillCMDCache';
|
||||
import { SimObjects } from '../../Sim/VariablesAndData.js';
|
||||
import FillCMDCache from '../FillCMDCache.js';
|
||||
import {
|
||||
CacheWrinklersFattest,
|
||||
CacheWrinklersNormal,
|
||||
CacheWrinklersTotal,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This functions caches data related to Wrinklers
|
||||
|
||||
@@ -10,6 +10,7 @@ function CheckNotificationPermissions(ToggleOnOff) {
|
||||
const checkNotificationPromise = function () {
|
||||
try {
|
||||
Notification.requestPermission().then();
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** Called by the "func" of individual settings */
|
||||
|
||||
import UpdateBackground from '../Disp/HelperFunctions/UpdateBackground';
|
||||
import UpdateBackground from '../Disp/HelperFunctions/UpdateBackground.js';
|
||||
|
||||
/**
|
||||
* This function changes the position of both the bottom and timer bar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { saveAndLoadingFunctions } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { saveAndLoadingFunctions } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
|
||||
/** Functions related to toggling or changing an individual setting */
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UpdateBotBar } from '../../Disp/InfoBars/BottomBar';
|
||||
import { UpdateBotTimerBarPosition } from '../SpecificToggles';
|
||||
import { UpdateBotBar } from '../../Disp/InfoBars/BottomBar.js';
|
||||
import { UpdateBotTimerBarPosition } from '../SpecificToggles.js';
|
||||
|
||||
/**
|
||||
* This function toggle the bottom bar
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CMSayTime } from '../../Disp/VariablesAndData';
|
||||
import { BackupFunctions } from '../../Main/VariablesAndData';
|
||||
import { CMSayTime } from '../../Disp/VariablesAndData.js';
|
||||
import { BackupFunctions } from '../../Main/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function changes some of the time-displays in the game to be more detailed
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CacheGoldenShimmersByID } from '../../Cache/VariablesAndData';
|
||||
import { GCTimers } from '../../Disp/VariablesAndData';
|
||||
import { CacheGoldenShimmersByID } from '../../Cache/VariablesAndData.js';
|
||||
import { GCTimers } from '../../Disp/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function toggles GC Timers are visible
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import UpdateUpgrades from '../../Disp/BuildingsUpgrades/Upgrades';
|
||||
import UpdateUpgrades from '../../Disp/BuildingsUpgrades/Upgrades.js';
|
||||
|
||||
/**
|
||||
* This function toggles the upgrade bar and the colours of upgrades
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import init from './InitSaveLoad/init';
|
||||
import load from './InitSaveLoad/load';
|
||||
import save from './InitSaveLoad/save';
|
||||
import init from './InitSaveLoad/init.js';
|
||||
import load from './InitSaveLoad/load.js';
|
||||
import save from './InitSaveLoad/save.js';
|
||||
|
||||
const CM = {
|
||||
init,
|
||||
@@ -10,7 +10,7 @@ const CM = {
|
||||
|
||||
if (typeof Steam !== 'undefined') {
|
||||
// Need to add a delay for steam
|
||||
setTimeout(function () {
|
||||
setTimeout(() => {
|
||||
Game.registerMod('CookieMonster', CM);
|
||||
|
||||
// Game.registerMod also calls CM.load() which calls the loop hook
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** Data related directly to Cookie Monster */
|
||||
|
||||
export const VersionMajor = '2.052';
|
||||
export const VersionMajor = '2.053';
|
||||
export const VersionMinor = '10';
|
||||
|
||||
/** Information about Cookie Monster to be displayed in the info section */
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { settingClasses } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { settingClasses } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
|
||||
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions';
|
||||
import RefreshScale from '../Disp/HelperFunctions/RefreshScale';
|
||||
import { SimDoSims } from '../Sim/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import ToggleBotBar from '../Config/Toggles/ToggleBotBar';
|
||||
import ToggleDetailedTime from '../Config/Toggles/ToggleDetailedTime';
|
||||
import ToggleGCTimer from '../Config/Toggles/ToggleGCTimer';
|
||||
import ToggleSectionHideButtons from '../Config/Toggles/ToggleSectionHideButtons';
|
||||
import ToggleToolWarnPos from '../Config/Toggles/ToggleToolWarnPos';
|
||||
import ToggleUpgradeBarAndColour from '../Config/Toggles/ToggleUpgradeBarAndColour';
|
||||
import ToggleUpgradeBarFixedPos from '../Config/Toggles/ToggleUpgradeBarFixedPos';
|
||||
import ToggleWrinklerButtons from '../Config/Toggles/ToggleWrinklerButtons';
|
||||
import UpdateBuildings from '../Disp/BuildingsUpgrades/Buildings';
|
||||
import { UpdateFavicon } from '../Disp/TabTitle/FavIcon';
|
||||
import UpdateUpgradeSectionsHeight from '../Disp/BuildingsUpgrades/UpdateUpgradeSectionsHeight';
|
||||
import UpdateUpgrades from '../Disp/BuildingsUpgrades/Upgrades';
|
||||
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles';
|
||||
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions.js';
|
||||
import RefreshScale from '../Disp/HelperFunctions/RefreshScale.js';
|
||||
import { SimDoSims } from '../Sim/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import ToggleBotBar from '../Config/Toggles/ToggleBotBar.js';
|
||||
import ToggleDetailedTime from '../Config/Toggles/ToggleDetailedTime.js';
|
||||
import ToggleGCTimer from '../Config/Toggles/ToggleGCTimer.js';
|
||||
import ToggleSectionHideButtons from '../Config/Toggles/ToggleSectionHideButtons.js';
|
||||
import ToggleToolWarnPos from '../Config/Toggles/ToggleToolWarnPos.js';
|
||||
import ToggleUpgradeBarAndColour from '../Config/Toggles/ToggleUpgradeBarAndColour.js';
|
||||
import ToggleUpgradeBarFixedPos from '../Config/Toggles/ToggleUpgradeBarFixedPos.js';
|
||||
import ToggleWrinklerButtons from '../Config/Toggles/ToggleWrinklerButtons.js';
|
||||
import UpdateBuildings from '../Disp/BuildingsUpgrades/Buildings.js';
|
||||
import { UpdateFavicon } from '../Disp/TabTitle/FavIcon.js';
|
||||
import UpdateUpgradeSectionsHeight from '../Disp/BuildingsUpgrades/UpdateUpgradeSectionsHeight.js';
|
||||
import UpdateUpgrades from '../Disp/BuildingsUpgrades/Upgrades.js';
|
||||
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles.js';
|
||||
|
||||
/** This includes all options of CookieMonster and their relevant data */
|
||||
const settings = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** General functions to format or beautify strings */
|
||||
|
||||
import { metric, shortScale, shortScaleAbbreviated } from '../../Data/Scales';
|
||||
import { BackupFunctions } from '../../Main/VariablesAndData';
|
||||
import { metric, shortScale, shortScaleAbbreviated } from '../../Data/Scales.js';
|
||||
import { BackupFunctions } from '../../Main/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function returns formats number based on the Scale setting
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ColourGreen, ColourOrange, ColourRed, ColourYellow } from '../VariablesAndData';
|
||||
import FormatTime from './FormatTime';
|
||||
import { ColourGreen, ColourOrange, ColourRed, ColourYellow } from '../VariablesAndData.js';
|
||||
import FormatTime from './FormatTime.js';
|
||||
|
||||
/**
|
||||
* This function returns the colour to be used for time-strings
|
||||
|
||||
@@ -4,10 +4,10 @@ import {
|
||||
CacheObjects10,
|
||||
CacheObjects100,
|
||||
CacheObjectsNextAchievement,
|
||||
} from '../../Cache/VariablesAndData';
|
||||
import BuildingSell from '../../Sim/SimulationEvents/SellBuilding';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
import { ColoursOrdering, LastTargetBuildings } from '../VariablesAndData';
|
||||
} from '../../Cache/VariablesAndData.js';
|
||||
import BuildingSell from '../../Sim/SimulationEvents/SellBuilding.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
import { ColoursOrdering, LastTargetBuildings } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* Section: Functions related to right column of the screen (buildings/upgrades)
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
ColourRed,
|
||||
ColourTextPre,
|
||||
ColourYellow,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates the legend for the upgrade bar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CacheUpgrades } from '../../Cache/VariablesAndData';
|
||||
import { CacheUpgrades } from '../../Cache/VariablesAndData.js';
|
||||
import {
|
||||
ColourBackPre,
|
||||
ColourBlue,
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
ColourRed,
|
||||
ColoursOrdering,
|
||||
ColourYellow,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function adjusts some things in the upgrades section
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/** Functions related to the Dragon */
|
||||
|
||||
import CacheDragonCost from '../../Cache/Dragon/Dragon';
|
||||
import { CacheCostDragonUpgrade } from '../../Cache/VariablesAndData';
|
||||
import CalculateChangeAura from '../../Sim/SimulationEvents/AuraChange';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../BeautifyAndFormatting/FormatTime';
|
||||
import CacheDragonCost from '../../Cache/Dragon/Dragon.js';
|
||||
import { CacheCostDragonUpgrade } from '../../Cache/VariablesAndData.js';
|
||||
import CalculateChangeAura from '../../Sim/SimulationEvents/AuraChange.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../BeautifyAndFormatting/FormatTime.js';
|
||||
|
||||
/**
|
||||
* This functions adds the two extra lines about CPS and time to recover to the aura picker infoscreen
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import ToggleWrinklerButtons from '../Config/Toggles/ToggleWrinklerButtons';
|
||||
import UpdateBuildings from './BuildingsUpgrades/Buildings';
|
||||
import UpdateUpgradeSectionsHeight from './BuildingsUpgrades/UpdateUpgradeSectionsHeight';
|
||||
import UpdateUpgrades from './BuildingsUpgrades/Upgrades';
|
||||
import { UpdateBotBar } from './InfoBars/BottomBar';
|
||||
import { UpdateTimerBar } from './InfoBars/TimerBar';
|
||||
import RefreshMenu from './MenuSections/Refreshmenu';
|
||||
import UpdateTooltips from './Tooltips/UpdateTooltips';
|
||||
import { CheckWrinklerTooltip, UpdateWrinklerTooltip } from './Tooltips/WrinklerTooltips';
|
||||
import ToggleWrinklerButtons from '../Config/Toggles/ToggleWrinklerButtons.js';
|
||||
import UpdateBuildings from './BuildingsUpgrades/Buildings.js';
|
||||
import UpdateUpgradeSectionsHeight from './BuildingsUpgrades/UpdateUpgradeSectionsHeight.js';
|
||||
import UpdateUpgrades from './BuildingsUpgrades/Upgrades.js';
|
||||
import { UpdateBotBar } from './InfoBars/BottomBar.js';
|
||||
import { UpdateTimerBar } from './InfoBars/TimerBar.js';
|
||||
import RefreshMenu from './MenuSections/Refreshmenu.js';
|
||||
import UpdateTooltips from './Tooltips/UpdateTooltips.js';
|
||||
import { CheckWrinklerTooltip, UpdateWrinklerTooltip } from './Tooltips/WrinklerTooltips.js';
|
||||
|
||||
/**
|
||||
* This function handles all custom drawing for the Game.Draw() function.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** Section: Functions related to the Golden Cookie Timers */
|
||||
|
||||
import { GCTimers } from '../VariablesAndData';
|
||||
import { GCTimers } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates a new Golden Cookie Timer and appends it CM.Disp.GCTimers based on the id of the cookie
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
CacheCurrWrinklerCount,
|
||||
CacheCurrWrinklerCPSMult,
|
||||
CacheWrinklersFattest,
|
||||
} from '../../Cache/VariablesAndData';
|
||||
} from '../../Cache/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function returns the cps as either current or average CPS depending on CM.Options.CPSMode
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ColourPurple,
|
||||
ColourRed,
|
||||
ColourYellow,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function returns Name and Colour as object for sugar lump type that is given as input param.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CacheWrinklersFattest, CacheWrinklersTotal } from '../../Cache/VariablesAndData';
|
||||
import { CacheWrinklersFattest, CacheWrinklersTotal } from '../../Cache/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function returns the total amount stored in the Wrinkler Bank
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import UpdateBuildings from '../BuildingsUpgrades/Buildings';
|
||||
import UpdateUpgrades from '../BuildingsUpgrades/Upgrades';
|
||||
import { UpdateBotBar } from '../InfoBars/BottomBar';
|
||||
import UpdateBuildings from '../BuildingsUpgrades/Buildings.js';
|
||||
import UpdateUpgrades from '../BuildingsUpgrades/Upgrades.js';
|
||||
import { UpdateBotBar } from '../InfoBars/BottomBar.js';
|
||||
|
||||
/**
|
||||
* This function refreshes all numbers after a change in scale-setting
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ToggleTimerBar } from '../../Config/SpecificToggles';
|
||||
import ToggleBotBar from '../../Config/Toggles/ToggleBotBar';
|
||||
import { ToggleTimerBar } from '../../Config/SpecificToggles.js';
|
||||
import ToggleBotBar from '../../Config/Toggles/ToggleBotBar.js';
|
||||
|
||||
import UpdateBackground from './UpdateBackground';
|
||||
import UpdateBackground from './UpdateBackground.js';
|
||||
|
||||
/**
|
||||
* This function disables and shows the bars created by CookieMonster when the game is "ascending"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import UpdateBuildings from '../BuildingsUpgrades/Buildings';
|
||||
import UpdateBuildings from '../BuildingsUpgrades/Buildings.js';
|
||||
import {
|
||||
ColourBackPre,
|
||||
ColourBorderPre,
|
||||
ColoursOrdering,
|
||||
ColourTextPre,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function changes/refreshes colours if the user has set new standard colours
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/** Functions related to the Bottom Bar */
|
||||
|
||||
import { CacheObjects1, CacheObjects10, CacheObjects100 } from '../../Cache/VariablesAndData';
|
||||
import { VersionMajor, VersionMinor } from '../../Data/Moddata';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../BeautifyAndFormatting/FormatTime';
|
||||
import GetTimeColour from '../BeautifyAndFormatting/GetTimeColour';
|
||||
import { CacheObjects1, CacheObjects10, CacheObjects100 } from '../../Cache/VariablesAndData.js';
|
||||
import { VersionMajor, VersionMinor } from '../../Data/Moddata.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../BeautifyAndFormatting/FormatTime.js';
|
||||
import GetTimeColour from '../BeautifyAndFormatting/GetTimeColour.js';
|
||||
|
||||
import GetCPS from '../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../HelperFunctions/GetWrinkConfigBank';
|
||||
import { ColourBlue, ColourTextPre, ColourYellow, LastTargetBotBar } from '../VariablesAndData';
|
||||
import { CreateBotBarBuildingColumn } from './CreateDOMElements';
|
||||
import GetCPS from '../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { ColourBlue, ColourTextPre, ColourYellow, LastTargetBotBar } from '../VariablesAndData.js';
|
||||
import { CreateBotBarBuildingColumn } from './CreateDOMElements.js';
|
||||
|
||||
/**
|
||||
* This function creates the bottom bar and appends it to l('wrapper')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** Functions to create various DOM elements used by the Bars */
|
||||
|
||||
import { ColourBackPre, ColourBlue, ColourTextPre } from '../VariablesAndData';
|
||||
import { ColourBackPre, ColourBlue, ColourTextPre } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates an indivudual timer for the timer bar
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** Functions related to the Timer Bar */
|
||||
|
||||
import { UpdateBotTimerBarPosition } from '../../Config/SpecificToggles';
|
||||
import { UpdateBotTimerBarPosition } from '../../Config/SpecificToggles.js';
|
||||
import {
|
||||
BuffColours,
|
||||
ColourBackPre,
|
||||
@@ -8,14 +8,14 @@ import {
|
||||
ColourOrange,
|
||||
ColourPurple,
|
||||
LastNumberOfTimers,
|
||||
} from '../VariablesAndData';
|
||||
import { CreateTimer } from './CreateDOMElements';
|
||||
} from '../VariablesAndData.js';
|
||||
import { CreateTimer } from './CreateDOMElements.js';
|
||||
import {
|
||||
updateChanceTotal,
|
||||
getChanceFinalDeer,
|
||||
getChanceFinal,
|
||||
updateChanceTotalDeer,
|
||||
} from '../../Main/CheckStates/Probability';
|
||||
} from '../../Main/CheckStates/Probability.js';
|
||||
|
||||
/**
|
||||
* This function creates the TimerBar and appends it to l('wrapper')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CacheWrinklersFattest } from '../../Cache/VariablesAndData';
|
||||
import PopAllNormalWrinklers from '../HelperFunctions/PopWrinklers';
|
||||
import { CreateTooltip } from '../Tooltips/Tooltip';
|
||||
import { CacheWrinklersFattest } from '../../Cache/VariablesAndData.js';
|
||||
import PopAllNormalWrinklers from '../HelperFunctions/PopWrinklers.js';
|
||||
import { CreateTooltip } from '../Tooltips/Tooltip.js';
|
||||
|
||||
/**
|
||||
* This function creates two objects at the bottom of the left column that allowing popping of wrinklers
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DispCSS } from '../VariablesAndData';
|
||||
import { DispCSS } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates a CSS style that stores certain standard CSS classes used by CookieMonster
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import createMenuOptions from './createMenuOptions';
|
||||
import AddMenuStats from './Statistics/AddStatsPage';
|
||||
import createMenuOptions from './createMenuOptions.js';
|
||||
import AddMenuStats from './Statistics/AddStatsPage.js';
|
||||
|
||||
/**
|
||||
* This function adds the calll the functions to add extra info to the stats and options pages
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/** Main function to create the sections of Cookie Monster on the Statistics page */
|
||||
|
||||
import { AddMissingUpgrades } from './CreateMissingUpgrades';
|
||||
import * as CreateSections from './CreateStatsSections';
|
||||
import * as CreateElements from './CreateDOMElements';
|
||||
import * as GameData from '../../../Data/Gamedata';
|
||||
import { AddMissingUpgrades } from './CreateMissingUpgrades.js';
|
||||
import * as CreateSections from './CreateStatsSections.js';
|
||||
import * as CreateElements from './CreateDOMElements.js';
|
||||
import * as GameData from '../../../Data/Gamedata.js';
|
||||
|
||||
import {
|
||||
CacheAverageClicks,
|
||||
@@ -12,12 +12,12 @@ import {
|
||||
CacheWrinklersFattest,
|
||||
CacheWrinklersNormal,
|
||||
CacheWrinklersTotal,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
import PopAllNormalWrinklers from '../../HelperFunctions/PopWrinklers';
|
||||
import { ClickTimes, CookieTimes } from '../../VariablesAndData';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import AddMissingAchievements from './CreateMissingAchievements';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
import PopAllNormalWrinklers from '../../HelperFunctions/PopWrinklers.js';
|
||||
import { ClickTimes, CookieTimes } from '../../VariablesAndData.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import AddMissingAchievements from './CreateMissingAchievements.js';
|
||||
|
||||
/**
|
||||
* This function adds stats created by CookieMonster to the stats page
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/** Section: Functions related to the creation of basic DOM elements page */
|
||||
|
||||
import { ToggleHeader } from '../../../Config/ToggleSetting';
|
||||
import { ToggleHeader } from '../../../Config/ToggleSetting.js';
|
||||
|
||||
import { SimpleTooltipElements } from '../../VariablesAndData';
|
||||
import { SimpleTooltipElements } from '../../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates a header-object for the stats page
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
CacheMissingUpgrades,
|
||||
CacheMissingUpgradesCookies,
|
||||
CacheMissingUpgradesPrestige,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates the missing upgrades sections for prestige, normal and cookie upgrades
|
||||
@@ -13,8 +13,7 @@ export function AddMissingUpgrades() {
|
||||
l('menu').childNodes.forEach((menuSection) => {
|
||||
if (menuSection.children[0]) {
|
||||
if (menuSection.children[0].innerHTML === 'Prestige' && CacheMissingUpgradesPrestige) {
|
||||
const prestigeUpgradesMissing =
|
||||
CacheMissingUpgradesPrestige.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const prestigeUpgradesMissing = CacheMissingUpgradesPrestige.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesPrestigeTitle';
|
||||
title.className = 'listing';
|
||||
@@ -30,8 +29,7 @@ export function AddMissingUpgrades() {
|
||||
menuSection.appendChild(upgrades);
|
||||
} else if (menuSection.children[0].innerHTML === 'Upgrades') {
|
||||
if (CacheMissingUpgrades) {
|
||||
const normalUpgradesMissing =
|
||||
CacheMissingUpgrades.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const normalUpgradesMissing = CacheMissingUpgrades.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesTitle';
|
||||
title.className = 'listing';
|
||||
@@ -54,8 +52,7 @@ export function AddMissingUpgrades() {
|
||||
);
|
||||
}
|
||||
if (CacheMissingUpgradesCookies) {
|
||||
const cookieUpgradesMissing =
|
||||
CacheMissingUpgradesCookies.match(new RegExp('div', 'g') || []).length / 2;
|
||||
const cookieUpgradesMissing = CacheMissingUpgradesCookies.match(/div/g || []).length / 2;
|
||||
const title = document.createElement('div');
|
||||
title.id = 'CMMissingUpgradesCookiesTitle';
|
||||
title.className = 'listing';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** Functions to create the individual sections of the Statistics page */
|
||||
|
||||
import * as GameData from '../../../Data/Gamedata';
|
||||
import { MaxChainCookieReward } from '../../../Cache/Stats/ChainCookies';
|
||||
import * as GameData from '../../../Data/Gamedata.js';
|
||||
import { MaxChainCookieReward } from '../../../Cache/Stats/ChainCookies.js';
|
||||
import {
|
||||
CacheAvgCPSWithChoEgg,
|
||||
CacheCentEgg,
|
||||
@@ -35,20 +35,20 @@ import {
|
||||
CacheSeaSpec,
|
||||
CacheWrathCookiesMult,
|
||||
CacheWrinklersTotal,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
import ResetBonus from '../../../Sim/SimulationEvents/ResetAscension';
|
||||
import CalculateLuckyLevels from '../../HelperFunctions/CalculateLuckyLevels';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import { ColourGreen, ColourRed, ColourTextPre } from '../../VariablesAndData';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
import ResetBonus from '../../../Sim/SimulationEvents/ResetAscension.js';
|
||||
import CalculateLuckyLevels from '../../HelperFunctions/CalculateLuckyLevels.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { ColourGreen, ColourRed, ColourTextPre } from '../../VariablesAndData.js';
|
||||
import {
|
||||
StatsListing,
|
||||
StatsHeader,
|
||||
StatsMissDisp,
|
||||
StatsMissDispListing,
|
||||
} from './CreateDOMElements';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime';
|
||||
} from './CreateDOMElements.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime.js';
|
||||
|
||||
/**
|
||||
* This function creates the "Lucky" section of the stats page
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { menuFunctions } from '@cookiemonsterteam/cookiemonsterframework';
|
||||
import { LatestReleaseNotes, ModDescription } from '../../Data/Moddata';
|
||||
import { LatestReleaseNotes, ModDescription } from '../../Data/Moddata.js';
|
||||
|
||||
/**
|
||||
* Creates the <div> to be added to the Info section
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { menuFunctions as mF } from '@cookiemonsterteam/cookiemonsterframework';
|
||||
import { ConfigGroups, ConfigGroupsNotification } from '../../Data/Sectionheaders';
|
||||
import settings from '../../Data/settings';
|
||||
import UpdateColours from '../HelperFunctions/UpdateColours';
|
||||
import RefreshScale from '../HelperFunctions/RefreshScale';
|
||||
import { ConfigGroups, ConfigGroupsNotification } from '../../Data/Sectionheaders.js';
|
||||
import settings from '../../Data/settings.js';
|
||||
import UpdateColours from '../HelperFunctions/UpdateColours.js';
|
||||
import RefreshScale from '../HelperFunctions/RefreshScale.js';
|
||||
|
||||
/**
|
||||
* Creates the <div> to be added to the Options section
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CacheSpawnedGoldenShimmer } from '../../Cache/VariablesAndData';
|
||||
import { LastGoldenCookieState } from '../../Main/VariablesAndData';
|
||||
import { CacheSpawnedGoldenShimmer } from '../../Cache/VariablesAndData.js';
|
||||
import { LastGoldenCookieState } from '../../Main/VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function creates the Favicon, it is called by CM.Main.DelayInit()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/** Functions related to updating the tab in the browser's tab-bar */
|
||||
|
||||
import { CacheSeasonPopShimmer, CacheSpawnedGoldenShimmer } from '../../Cache/VariablesAndData';
|
||||
import { CacheSeasonPopShimmer, CacheSpawnedGoldenShimmer } from '../../Cache/VariablesAndData.js';
|
||||
|
||||
import { LastSeasonPopupState, LastTickerFortuneState } from '../../Main/VariablesAndData';
|
||||
import { Title } from '../VariablesAndData';
|
||||
import { LastSeasonPopupState, LastTickerFortuneState } from '../../Main/VariablesAndData.js';
|
||||
import { Title } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function updates the tab title
|
||||
|
||||
@@ -2,8 +2,8 @@ import {
|
||||
CacheHCPerSecond,
|
||||
CacheLastHeavenlyChips,
|
||||
CacheTimeTillNextPrestige,
|
||||
} from '../../Cache/VariablesAndData';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
} from '../../Cache/VariablesAndData.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
|
||||
/**
|
||||
* This function creates a header object for tooltips.
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ColourYellow,
|
||||
ColourPurple,
|
||||
TooltipType,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/** Creates various sections of tooltips */
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import UpdateTooltips from './UpdateTooltips';
|
||||
import { SimpleTooltipElements, TooltipName, TooltipType } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding';
|
||||
import GetTimeColour from '../BeautifyAndFormatting/GetTimeColour';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
import UpdateTooltips from './UpdateTooltips.js';
|
||||
import { SimpleTooltipElements, TooltipName, TooltipType } from '../VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import BuildingGetPrice from '../../Sim/SimulationEvents/BuyBuilding.js';
|
||||
import GetTimeColour from '../BeautifyAndFormatting/GetTimeColour.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
|
||||
/** All general functions related to creating and updating tooltips */
|
||||
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
import ColourOfPP from '../../../Cache/PP/ColourOfPP';
|
||||
import ColourOfPP from '../../../Cache/PP/ColourOfPP.js';
|
||||
import {
|
||||
CacheObjects1,
|
||||
CacheObjects10,
|
||||
CacheObjects100,
|
||||
CacheObjectsNextAchievement,
|
||||
} from '../../../Cache/VariablesAndData';
|
||||
} from '../../../Cache/VariablesAndData.js';
|
||||
|
||||
import BuyBuildingsBonusIncome from '../../../Sim/SimulationEvents/BuyBuildingBonusIncome';
|
||||
import { SimObjects } from '../../../Sim/VariablesAndData';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import BuyBuildingsBonusIncome from '../../../Sim/SimulationEvents/BuyBuildingBonusIncome.js';
|
||||
import { SimObjects } from '../../../Sim/VariablesAndData.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime.js';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import {
|
||||
ColourTextPre,
|
||||
LastTargetTooltipBuilding,
|
||||
TooltipBonusIncome,
|
||||
TooltipName,
|
||||
TooltipPrice,
|
||||
} from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
} from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Building tooltips
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import { TooltipName } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import { TooltipName } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Garden plots tooltips
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour';
|
||||
import CalculateGrimoireRefillTime from '../../HelperFunctions/CalculateGrimoireRefillTime';
|
||||
import { ColourTextPre, TooltipName } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour.js';
|
||||
import CalculateGrimoireRefillTime from '../../HelperFunctions/CalculateGrimoireRefillTime.js';
|
||||
import { ColourTextPre, TooltipName } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Grimoire tooltips
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Garden Harvest All tooltip
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CacheGods } from '../../../Cache/VariablesAndData';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import { TooltipName, TooltipType } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import { CacheGods } from '../../../Cache/VariablesAndData.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import { TooltipName, TooltipType } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Pantheon Gods tooltip
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import {
|
||||
TooltipName,
|
||||
ColourTextPre,
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
ColourRed,
|
||||
ColourPurple,
|
||||
ColourGray,
|
||||
} from '../../VariablesAndData';
|
||||
import CalculateStockNextExpectedValue from '../../HelperFunctions/CalculateStockNextExpectedValue';
|
||||
import * as Create from '../CreateTooltip';
|
||||
} from '../../VariablesAndData.js';
|
||||
import CalculateStockNextExpectedValue from '../../HelperFunctions/CalculateStockNextExpectedValue.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the stock market
|
||||
@@ -63,7 +63,9 @@ export default function StockMarket() {
|
||||
Game.Objects.Bank.level,
|
||||
Game.auraMult('Supreme Intellect'),
|
||||
);
|
||||
expectedNextValue.textContent = `$${Beautify(expectedValue) + (expectedValue < stock.val ? '\u25bc' : '\u25b2')}`;
|
||||
expectedNextValue.textContent = `$${
|
||||
Beautify(expectedValue) + (expectedValue < stock.val ? '\u25bc' : '\u25b2')
|
||||
}`;
|
||||
const expectedNextValueColour = expectedValue < stock.val ? ColourRed : ColourGreen;
|
||||
expectedNextValue.className = ColourTextPre + expectedNextValueColour;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import GetLumpColour from '../../HelperFunctions/GetLumpColour';
|
||||
import { ColourTextPre } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import GetLumpColour from '../../HelperFunctions/GetLumpColour.js';
|
||||
import { ColourTextPre } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
/**
|
||||
* This function adds extra info to the Sugar Lump tooltip
|
||||
* It adds to the additional information to l('CMTooltipArea')
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { CacheLastChoEgg, CacheUpgrades } from '../../../Cache/VariablesAndData';
|
||||
import { CacheLastChoEgg, CacheUpgrades } from '../../../Cache/VariablesAndData.js';
|
||||
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime.js';
|
||||
import GetTimeColour from '../../BeautifyAndFormatting/GetTimeColour.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import {
|
||||
ColourTextPre,
|
||||
TooltipBonusIncome,
|
||||
TooltipBonusMouse,
|
||||
TooltipName,
|
||||
TooltipPrice,
|
||||
} from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
} from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the Upgrade tooltips
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import GetCPSBuffMult from '../../../Cache/CPS/GetCPSBuffMult';
|
||||
import { CacheEdifice, CacheLucky } from '../../../Cache/VariablesAndData';
|
||||
import ToggleToolWarnPos from '../../../Config/Toggles/ToggleToolWarnPos';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank';
|
||||
import { TooltipBonusIncome, TooltipPrice, TooltipType } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import GetCPSBuffMult from '../../../Cache/CPS/GetCPSBuffMult.js';
|
||||
import { CacheEdifice, CacheLucky } from '../../../Cache/VariablesAndData.js';
|
||||
import ToggleToolWarnPos from '../../../Config/Toggles/ToggleToolWarnPos.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../BeautifyAndFormatting/FormatTime.js';
|
||||
import GetCPS from '../../HelperFunctions/GetCPS.js';
|
||||
import GetWrinkConfigBank from '../../HelperFunctions/GetWrinkConfigBank.js';
|
||||
import { TooltipBonusIncome, TooltipPrice, TooltipType } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function updates the warnings section of the building and upgrade tooltips
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CacheWrinklersFattest, CacheWrinklersNormal } from '../../../Cache/VariablesAndData';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||
import { TooltipName } from '../../VariablesAndData';
|
||||
import * as Create from '../CreateTooltip';
|
||||
import { CacheWrinklersFattest, CacheWrinklersNormal } from '../../../Cache/VariablesAndData.js';
|
||||
import Beautify from '../../BeautifyAndFormatting/Beautify.js';
|
||||
import { TooltipName } from '../../VariablesAndData.js';
|
||||
import * as Create from '../CreateTooltip.js';
|
||||
|
||||
/**
|
||||
* This function adds extra info to the wrinkler button tooltip
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import CopyData from '../../Sim/SimulationData/CopyData';
|
||||
import { TooltipName, TooltipType } from '../VariablesAndData';
|
||||
import * as Create from './CreateTooltip';
|
||||
import Building from './TypesOfTooltips/Building';
|
||||
import GardenPlots from './TypesOfTooltips/GardenPlots';
|
||||
import StockMarket from './TypesOfTooltips/StockMarket';
|
||||
import Grimoire from './TypesOfTooltips/Grimoire';
|
||||
import HarvestAll from './TypesOfTooltips/HarvestAll';
|
||||
import PantheonGods from './TypesOfTooltips/PantheonGods';
|
||||
import SugarLump from './TypesOfTooltips/SugarLump';
|
||||
import Upgrade from './TypesOfTooltips/Upgrade';
|
||||
import Warnings from './TypesOfTooltips/Warnings';
|
||||
import WrinklerButton from './TypesOfTooltips/WrinklerButton';
|
||||
import CopyData from '../../Sim/SimulationData/CopyData.js';
|
||||
import { TooltipName, TooltipType } from '../VariablesAndData.js';
|
||||
import * as Create from './CreateTooltip.js';
|
||||
import Building from './TypesOfTooltips/Building.js';
|
||||
import GardenPlots from './TypesOfTooltips/GardenPlots.js';
|
||||
import StockMarket from './TypesOfTooltips/StockMarket.js';
|
||||
import Grimoire from './TypesOfTooltips/Grimoire.js';
|
||||
import HarvestAll from './TypesOfTooltips/HarvestAll.js';
|
||||
import PantheonGods from './TypesOfTooltips/PantheonGods.js';
|
||||
import SugarLump from './TypesOfTooltips/SugarLump.js';
|
||||
import Upgrade from './TypesOfTooltips/Upgrade.js';
|
||||
import Warnings from './TypesOfTooltips/Warnings.js';
|
||||
import WrinklerButton from './TypesOfTooltips/WrinklerButton.js';
|
||||
|
||||
/**
|
||||
* This function updates the sections of the tooltips created by CookieMonster
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SimObjects } from '../../Sim/VariablesAndData';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify';
|
||||
import { SimObjects } from '../../Sim/VariablesAndData.js';
|
||||
import Beautify from '../BeautifyAndFormatting/Beautify.js';
|
||||
import {
|
||||
TooltipWrinkler,
|
||||
TooltipWrinklerArea,
|
||||
TooltipWrinklerBeingShown,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function checks and create a tooltip for the wrinklers
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import toggleBuildingLock from './toggleBuildingLock';
|
||||
import toggleBuildingLock from './toggleBuildingLock.js';
|
||||
|
||||
/**
|
||||
* This function adds a lock button to the "building view" in the middle section
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { initFunctions } from '@cookiemonsterteam/cookiemonsterframework';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata';
|
||||
import CMDrawHook from '../Disp/DrawHook';
|
||||
import CMClickHook from '../Main/ClickHook';
|
||||
import InitializeCookieMonster from '../Main/Initialization';
|
||||
import CMLoopHook from '../Main/LoopHook';
|
||||
import load from './load';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata.js';
|
||||
import CMDrawHook from '../Disp/DrawHook.js';
|
||||
import CMClickHook from '../Main/ClickHook.js';
|
||||
import InitializeCookieMonster from '../Main/Initialization.js';
|
||||
import CMLoopHook from '../Main/LoopHook.js';
|
||||
import load from './load.js';
|
||||
|
||||
/**
|
||||
* This creates a init function for the CM object. Per Game code/comments:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { saveAndLoadingFunctions } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { saveAndLoadingFunctions } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
|
||||
import headers from '../Data/headers';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata';
|
||||
import settings from '../Data/settings';
|
||||
import UpdateColours from '../Disp/HelperFunctions/UpdateColours';
|
||||
import CMLoopHook from '../Main/LoopHook';
|
||||
import InitData from '../Sim/InitializeData/InitData';
|
||||
import headers from '../Data/headers.js';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata.js';
|
||||
import settings from '../Data/settings.js';
|
||||
import UpdateColours from '../Disp/HelperFunctions/UpdateColours.js';
|
||||
import CMLoopHook from '../Main/LoopHook.js';
|
||||
import InitData from '../Sim/InitializeData/InitData.js';
|
||||
|
||||
/**
|
||||
* This creates a load function to the CM object. Per Game code/comments:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata.js';
|
||||
|
||||
/**
|
||||
* This creates a save function to the CM object. Per Game code/comments:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { LastGardenNextStep } from '../VariablesAndData';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import { LastGardenNextStep } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function checks if a garden tick has happened
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { CacheSpawnedGoldenShimmer, CacheGoldenShimmersByID } from '../../Cache/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import CreateGCTimer from '../../Disp/GoldenCookieTimers/GoldenCookieTimers';
|
||||
import { UpdateFavicon } from '../../Disp/TabTitle/FavIcon';
|
||||
import { GCTimers } from '../../Disp/VariablesAndData';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import {
|
||||
CacheSpawnedGoldenShimmer, // eslint-disable-line no-unused-vars
|
||||
CacheGoldenShimmersByID,
|
||||
} from '../../Cache/VariablesAndData.js';
|
||||
import CreateGCTimer from '../../Disp/GoldenCookieTimers/GoldenCookieTimers.js';
|
||||
import { UpdateFavicon } from '../../Disp/TabTitle/FavIcon.js';
|
||||
import { GCTimers } from '../../Disp/VariablesAndData.js';
|
||||
import {
|
||||
CurrSpawnedGoldenCookieState,
|
||||
LastGoldenCookieState,
|
||||
LastSpawnedGoldenCookieState,
|
||||
} from '../VariablesAndData';
|
||||
import { resetChanceTotal } from './Probability';
|
||||
} from '../VariablesAndData.js';
|
||||
import { resetChanceTotal } from './Probability.js';
|
||||
|
||||
/**
|
||||
* Auxilirary function that finds all currently spawned shimmers.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { LastMagicBarFull } from '../VariablesAndData';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import { LastMagicBarFull } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function checks if the magic meter is full
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { CacheSeasonPopShimmer } from '../../Cache/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import { LastSeasonPopupState } from '../VariablesAndData';
|
||||
import { resetChanceTotalDeer } from './Probability';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import { CacheSeasonPopShimmer } from '../../Cache/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import { LastSeasonPopupState } from '../VariablesAndData.js';
|
||||
import { resetChanceTotalDeer } from './Probability.js';
|
||||
|
||||
/**
|
||||
* This function checks if there is reindeer that has spawned
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { LastTickerFortuneState } from '../VariablesAndData';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import { LastTickerFortuneState } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function checks if there is a fortune cookie on the ticker
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index';
|
||||
import { LastWrinklerCount } from '../VariablesAndData';
|
||||
import { notificationsFunctions as nF } from '@cookiemonsterteam/cookiemonsterframework/src/index.js';
|
||||
import { LastWrinklerCount } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function checks if any new Wrinklers have popped up
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CacheAverageCookiesFromClicks } from '../Cache/VariablesAndData';
|
||||
import { CacheAverageCookiesFromClicks } from '../Cache/VariablesAndData.js';
|
||||
|
||||
export default function CMClickHook() {
|
||||
// Add cookies from click to array that stores average
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
import InitCache from '../Cache/CacheInit';
|
||||
import { CacheStatsCookies } from '../Cache/Stats/Stats';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata';
|
||||
import CreateUpgradeBar from '../Disp/BuildingsUpgrades/UpgradeBar';
|
||||
import { CreateBotBar } from '../Disp/InfoBars/BottomBar';
|
||||
import { CreateTimerBar } from '../Disp/InfoBars/TimerBar';
|
||||
import CreateSectionHideButtons from '../Disp/Initialization/CreateSectionHideButtons';
|
||||
import CreateWrinklerButtons from '../Disp/Initialization/CreateWrinklerButton';
|
||||
import CreateCssArea from '../Disp/Initialization/CssArea';
|
||||
import UpdateBuildingUpgradeStyle from '../Disp/Initialization/UpdateBuildingUpgradeStyle';
|
||||
import { CreateFavicon } from '../Disp/TabTitle/FavIcon';
|
||||
import { CreateSimpleTooltip } from '../Disp/Tooltips/Tooltip';
|
||||
import { CMLastAscendState, TooltipText } from '../Disp/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import InitData from '../Sim/InitializeData/InitData';
|
||||
import ReplaceNativeGrimoire from './ReplaceGameElements/NativeGrimoire';
|
||||
import ReplaceTooltips from './ReplaceGameElements/Tooltips';
|
||||
import ReplaceNative from './ReplaceGameFunctions/ReplaceNative';
|
||||
import { LastModCount } from './VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import AddWrinklerAreaDetect from './WrinklerArea/AddDetectArea';
|
||||
import createBuildingLockButtons from '../Disp/buildingTiles/createBuildingLockButtons';
|
||||
// import createMenuInfo from '../Disp/MenuSections/createMenuInfo';
|
||||
import createMenuOptions from '../Disp/MenuSections/createMenuOptions';
|
||||
import InitCache from '../Cache/CacheInit.js';
|
||||
import { CacheStatsCookies } from '../Cache/Stats/Stats.js';
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata.js';
|
||||
import CreateUpgradeBar from '../Disp/BuildingsUpgrades/UpgradeBar.js';
|
||||
import { CreateBotBar } from '../Disp/InfoBars/BottomBar.js';
|
||||
import { CreateTimerBar } from '../Disp/InfoBars/TimerBar.js';
|
||||
import CreateSectionHideButtons from '../Disp/Initialization/CreateSectionHideButtons.js';
|
||||
import CreateWrinklerButtons from '../Disp/Initialization/CreateWrinklerButton.js';
|
||||
import CreateCssArea from '../Disp/Initialization/CssArea.js';
|
||||
import UpdateBuildingUpgradeStyle from '../Disp/Initialization/UpdateBuildingUpgradeStyle.js';
|
||||
import { CreateFavicon } from '../Disp/TabTitle/FavIcon.js';
|
||||
import { CreateSimpleTooltip } from '../Disp/Tooltips/Tooltip.js';
|
||||
import { CMLastAscendState, TooltipText } from '../Disp/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import InitData from '../Sim/InitializeData/InitData.js';
|
||||
import ReplaceNativeGrimoire from './ReplaceGameElements/NativeGrimoire.js';
|
||||
import ReplaceTooltips from './ReplaceGameElements/Tooltips.js';
|
||||
import ReplaceNative from './ReplaceGameFunctions/ReplaceNative.js';
|
||||
import { LastModCount } from './VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import AddWrinklerAreaDetect from './WrinklerArea/AddDetectArea.js';
|
||||
import createBuildingLockButtons from '../Disp/buildingTiles/createBuildingLockButtons.js';
|
||||
// import createMenuInfo from '../Disp/MenuSections/createMenuInfo.js';
|
||||
import createMenuOptions from '../Disp/MenuSections/createMenuOptions.js';
|
||||
|
||||
/**
|
||||
* Initialization loop of Cookie Monster
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
import InitCache from '../Cache/CacheInit';
|
||||
import LoopCache from '../Cache/CacheLoop';
|
||||
import CacheNoGoldSwitchCPS from '../Cache/CPS/NoGoldSwitchCPS';
|
||||
import CacheSellAllForChoEgg from '../Cache/CPS/SellChoEgg';
|
||||
import CacheDragonCost from '../Cache/Dragon/Dragon';
|
||||
import CachePantheonGods from '../Cache/PantheonGods/CacheGods';
|
||||
import { CacheBuildingsPrices, CacheIncome } from '../Cache/PriceAndIncome/PriceAndIncome';
|
||||
import { CacheChain } from '../Cache/Stats/ChainCookies';
|
||||
import CacheAllMissingUpgrades from '../Cache/Stats/MissingUpgrades';
|
||||
import CacheSeasonSpec from '../Cache/Stats/Reindeer';
|
||||
import { CacheGoldenAndWrathCookiesMults, CacheStatsCookies } from '../Cache/Stats/Stats';
|
||||
import AllAmountTillNextAchievement from '../Cache/TillNextAchievement/AllAmountTillNextAchievement';
|
||||
import { CacheDoRemakeBuildPrices, CacheHadBuildAura } from '../Cache/VariablesAndData';
|
||||
import UpdateAscendState from '../Disp/HelperFunctions/UpdateAscendState';
|
||||
import { LastAscendState } from '../Disp/VariablesAndData';
|
||||
import InitData from '../Sim/InitializeData/InitData';
|
||||
import { SimDoSims } from '../Sim/VariablesAndData';
|
||||
import CheckGardenTick from './CheckStates/Garden';
|
||||
import CheckGoldenCookie from './CheckStates/GoldenCookie';
|
||||
import CheckMagicMeter from './CheckStates/Grimoire';
|
||||
import CheckSeasonPopup from './CheckStates/Season';
|
||||
import CheckTickerFortune from './CheckStates/Ticker';
|
||||
import CheckWrinklerCount from './CheckStates/Wrinkler';
|
||||
import { LastModCount } from './VariablesAndData';
|
||||
import InitCache from '../Cache/CacheInit.js';
|
||||
import LoopCache from '../Cache/CacheLoop.js';
|
||||
import CacheNoGoldSwitchCPS from '../Cache/CPS/NoGoldSwitchCPS.js';
|
||||
import CacheSellAllForChoEgg from '../Cache/CPS/SellChoEgg.js';
|
||||
import CacheDragonCost from '../Cache/Dragon/Dragon.js';
|
||||
import CachePantheonGods from '../Cache/PantheonGods/CacheGods.js';
|
||||
import { CacheBuildingsPrices, CacheIncome } from '../Cache/PriceAndIncome/PriceAndIncome.js';
|
||||
import { CacheChain } from '../Cache/Stats/ChainCookies.js';
|
||||
import CacheAllMissingUpgrades from '../Cache/Stats/MissingUpgrades.js';
|
||||
import CacheSeasonSpec from '../Cache/Stats/Reindeer.js';
|
||||
import { CacheGoldenAndWrathCookiesMults, CacheStatsCookies } from '../Cache/Stats/Stats.js';
|
||||
import AllAmountTillNextAchievement from '../Cache/TillNextAchievement/AllAmountTillNextAchievement.js';
|
||||
import { CacheDoRemakeBuildPrices, CacheHadBuildAura } from '../Cache/VariablesAndData.js';
|
||||
import UpdateAscendState from '../Disp/HelperFunctions/UpdateAscendState.js';
|
||||
import { LastAscendState } from '../Disp/VariablesAndData.js';
|
||||
import InitData from '../Sim/InitializeData/InitData.js';
|
||||
import { SimDoSims } from '../Sim/VariablesAndData.js';
|
||||
import CheckGardenTick from './CheckStates/Garden.js';
|
||||
import CheckGoldenCookie from './CheckStates/GoldenCookie.js';
|
||||
import CheckMagicMeter from './CheckStates/Grimoire.js';
|
||||
import CheckSeasonPopup from './CheckStates/Season.js';
|
||||
import CheckTickerFortune from './CheckStates/Ticker.js';
|
||||
import CheckWrinklerCount from './CheckStates/Wrinkler.js';
|
||||
import { LastModCount } from './VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* Main loop of Cookie Monster
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import FormatTime from '../../Disp/BeautifyAndFormatting/FormatTime';
|
||||
import CalculateGrimoireRefillTime from '../../Disp/HelperFunctions/CalculateGrimoireRefillTime';
|
||||
import FormatTime from '../../Disp/BeautifyAndFormatting/FormatTime.js';
|
||||
import CalculateGrimoireRefillTime from '../../Disp/HelperFunctions/CalculateGrimoireRefillTime.js';
|
||||
import {
|
||||
BackupGrimoireDraw,
|
||||
BackupGrimoireLaunch, // eslint-disable-line no-unused-vars
|
||||
BackupGrimoireLaunchMod,
|
||||
HasReplaceNativeGrimoireDraw,
|
||||
HasReplaceNativeGrimoireLaunch,
|
||||
} from '../VariablesAndData';
|
||||
import ReplaceTooltipGrimoire from './TooltipGrimoire';
|
||||
} from '../VariablesAndData.js';
|
||||
import ReplaceTooltipGrimoire from './TooltipGrimoire.js';
|
||||
|
||||
/**
|
||||
* This function fixes replaces the .draw function of the Grimoire
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip';
|
||||
import { TooltipGrimoireBackup } from '../VariablesAndData';
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip.js';
|
||||
import { TooltipGrimoireBackup } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function replaces the original .onmouseover functions of the Grimoire minigame
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip';
|
||||
import { TooltipUpgradeBackup } from '../VariablesAndData';
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip.js';
|
||||
import { TooltipUpgradeBackup } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function replaces the original .onmouseover functions of upgrades so that it calls CM.Disp.Tooltip()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/** Functions related to replacing tooltips */
|
||||
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip';
|
||||
import { LoadMinigames, TooltipBuildBackup, TooltipLumpBackup } from '../VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import ReplaceNativeGrimoire from './NativeGrimoire';
|
||||
import ReplaceTooltipGrimoire from './TooltipGrimoire';
|
||||
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip.js';
|
||||
import { LoadMinigames, TooltipBuildBackup, TooltipLumpBackup } from '../VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import ReplaceNativeGrimoire from './NativeGrimoire.js';
|
||||
import ReplaceTooltipGrimoire from './TooltipGrimoire.js';
|
||||
|
||||
/**
|
||||
* This function replaces the original .onmouseover functions of buildings
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import jscolor from '@eastdesire/jscolor';
|
||||
|
||||
import CMBeautify from '../../Disp/BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../Disp/BeautifyAndFormatting/FormatTime';
|
||||
import { AddAuraInfo, AddDragonLevelUpTooltip } from '../../Disp/Dragon/Dragon';
|
||||
import AddMenu from '../../Disp/MenuSections/AddMenus';
|
||||
import UpdateTitle from '../../Disp/TabTitle/TabTitle';
|
||||
import ReplaceAscendTooltip from '../../Disp/Tooltips/AscendButton';
|
||||
import UpdateTooltipLocation from '../../Disp/Tooltips/PositionLocation';
|
||||
import { CMSayTime, Title } from '../../Disp/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import { SimDoSims } from '../../Sim/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import ReplaceTooltipUpgrade from '../ReplaceGameElements/TooltipUpgrades';
|
||||
import CMBeautify from '../../Disp/BeautifyAndFormatting/Beautify.js';
|
||||
import FormatTime from '../../Disp/BeautifyAndFormatting/FormatTime.js';
|
||||
import { AddAuraInfo, AddDragonLevelUpTooltip } from '../../Disp/Dragon/Dragon.js';
|
||||
import AddMenu from '../../Disp/MenuSections/AddMenus.js';
|
||||
import UpdateTitle from '../../Disp/TabTitle/TabTitle.js';
|
||||
import ReplaceAscendTooltip from '../../Disp/Tooltips/AscendButton.js';
|
||||
import UpdateTooltipLocation from '../../Disp/Tooltips/PositionLocation.js';
|
||||
import { CMSayTime, Title } from '../../Disp/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import { SimDoSims } from '../../Sim/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
import ReplaceTooltipUpgrade from '../ReplaceGameElements/TooltipUpgrades.js';
|
||||
import {
|
||||
BackupFunctions,
|
||||
CenturyDateAtBeginLoop, // eslint-disable-line no-unused-vars
|
||||
CycliusDateAtBeginLoop, // eslint-disable-line no-unused-vars
|
||||
} from '../VariablesAndData';
|
||||
import FixMouseY from './FixMouse';
|
||||
} from '../VariablesAndData.js';
|
||||
import FixMouseY from './FixMouse.js';
|
||||
|
||||
/**
|
||||
* This function replaces certain native (from the base-game) functions
|
||||
@@ -123,7 +123,7 @@ export default function ReplaceNative() {
|
||||
};
|
||||
|
||||
BackupFunctions.sayTime = Game.sayTime;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
|
||||
CMSayTime = function (time, detail) {
|
||||
if (Number.isNaN(time) || time <= 0) return BackupFunctions.sayTime(time, detail);
|
||||
return FormatTime(time / Game.fps, 1);
|
||||
@@ -136,7 +136,7 @@ export default function ReplaceNative() {
|
||||
// Update tab title
|
||||
let title = 'Cookie Clicker';
|
||||
if (Game.season === 'fools') title = 'Cookie Baker';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
|
||||
Title = `${Game.OnAscend ? 'Ascending! ' : ''}${CMBeautify(Game.cookies)} ${
|
||||
Game.cookies === 1 ? 'cookie' : 'cookies'
|
||||
} - ${title}`;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TooltipWrinklerArea, TooltipWrinklerBeingShown } from '../../Disp/VariablesAndData'; // eslint-disable-line no-unused-vars
|
||||
import { TooltipWrinklerArea, TooltipWrinklerBeingShown } from '../../Disp/VariablesAndData.js'; // eslint-disable-line no-unused-vars
|
||||
|
||||
/**
|
||||
* This function creates .onmouseover/out events that determine if the mouse is hovering-over a Wrinkler
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import GetCPSBuffMult from '../../Cache/CPS/GetCPSBuffMult';
|
||||
import { CacheCentEgg } from '../../Cache/VariablesAndData';
|
||||
import { CenturyDateAtBeginLoop, CycliusDateAtBeginLoop } from '../../Main/VariablesAndData';
|
||||
import SimAuraMult from '../ReplacedGameFunctions/SimAuraMult';
|
||||
import SimEff from '../ReplacedGameFunctions/SimEff';
|
||||
import SimGetHeavenlyMultiplier from '../ReplacedGameFunctions/SimGetHeavenlyMultiplier';
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas';
|
||||
import SimHasGod from '../ReplacedGameFunctions/SimHasGod';
|
||||
import SimWin from '../SimulationData/SimWin';
|
||||
import GetCPSBuffMult from '../../Cache/CPS/GetCPSBuffMult.js';
|
||||
import { CacheCentEgg } from '../../Cache/VariablesAndData.js';
|
||||
import { CenturyDateAtBeginLoop, CycliusDateAtBeginLoop } from '../../Main/VariablesAndData.js';
|
||||
import SimAuraMult from '../ReplacedGameFunctions/SimAuraMult.js';
|
||||
import SimEff from '../ReplacedGameFunctions/SimEff.js';
|
||||
import SimGetHeavenlyMultiplier from '../ReplacedGameFunctions/SimGetHeavenlyMultiplier.js';
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas.js';
|
||||
import SimHasGod from '../ReplacedGameFunctions/SimHasGod.js';
|
||||
import SimWin from '../SimulationData/SimWin.js';
|
||||
import {
|
||||
SimAchievementsOwned,
|
||||
SimCookiesPs,
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
SimObjects,
|
||||
SimPrestige,
|
||||
SimUpgrades,
|
||||
} from '../VariablesAndData';
|
||||
} from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function calculates the CPS of the current "sim data"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ChristCookies, HalloCookies } from '../../Data/Gamedata';
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas';
|
||||
import SimHasAchiev from '../ReplacedGameFunctions/SimHasAchiev';
|
||||
import SimWin from '../SimulationData/SimWin';
|
||||
import { SimObjects, SimUpgradesOwned } from '../VariablesAndData';
|
||||
import { ChristCookies, HalloCookies } from '../../Data/Gamedata.js';
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas.js';
|
||||
import SimHasAchiev from '../ReplacedGameFunctions/SimHasAchiev.js';
|
||||
import SimWin from '../SimulationData/SimWin.js';
|
||||
import { SimObjects, SimUpgradesOwned } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function calculates if any special achievements have been obtained
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import CopyData from '../SimulationData/CopyData';
|
||||
import { SimCookiesPs, SimUpgrades } from '../VariablesAndData';
|
||||
import CalculateGains from './CalculateGains';
|
||||
import CopyData from '../SimulationData/CopyData.js';
|
||||
import { SimCookiesPs, SimUpgrades } from '../VariablesAndData.js';
|
||||
import CalculateGains from './CalculateGains.js';
|
||||
|
||||
/**
|
||||
* This function calculates CPS without the Golden Switch
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/** Functions used to create static objects of Buildings, Upgrades and Achievements */
|
||||
|
||||
import CopyData from '../SimulationData/CopyData';
|
||||
import { SimAchievements, SimObjects, SimUpgrades } from '../VariablesAndData';
|
||||
import InitAchievement from './InitAchievement';
|
||||
import InitialBuildingData from './InitialBuildingData';
|
||||
import InitUpgrade from './InitUpgrade';
|
||||
import CopyData from '../SimulationData/CopyData.js';
|
||||
import { SimAchievements, SimObjects, SimUpgrades } from '../VariablesAndData.js';
|
||||
import InitAchievement from './InitAchievement.js';
|
||||
import InitialBuildingData from './InitialBuildingData.js';
|
||||
import InitUpgrade from './InitUpgrade.js';
|
||||
|
||||
/**
|
||||
* This function creates static objects for Buildings, Upgrades and Achievements
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas';
|
||||
import SimHasGod from '../ReplacedGameFunctions/SimHasGod';
|
||||
import { SimObjects } from '../VariablesAndData';
|
||||
import SimHas from '../ReplacedGameFunctions/SimHas.js';
|
||||
import SimHasGod from '../ReplacedGameFunctions/SimHasGod.js';
|
||||
import { SimObjects } from '../VariablesAndData.js';
|
||||
|
||||
/**
|
||||
* This function constructs an object with the static properties of an upgrade
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user