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,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
|
||||
|
||||
Reference in New Issue
Block a user