Fixed linting issues

This commit is contained in:
Daniël van Noord
2021-05-01 22:43:02 +02:00
parent 1d12977984
commit 1c8bd79640
94 changed files with 8692 additions and 1316 deletions

View File

@@ -1,11 +1,7 @@
/** Functions related to replacing tooltips */
import { CreateTooltip } from '../../Disp/Tooltips/Tooltip';
import {
LoadMinigames,
TooltipBuildBackup,
TooltipLumpBackup,
} from '../VariablesAndData';
import { LoadMinigames, TooltipBuildBackup, TooltipLumpBackup } from '../VariablesAndData';
import ReplaceNativeGrimoire from './NativeGrimoire';
import ReplaceTooltipGrimoire from './TooltipGrimoire';
@@ -19,11 +15,7 @@ function ReplaceTooltipBuild() {
TooltipBuildBackup[i] = l(`product${me.id}`).onmouseover;
l(`product${me.id}`).onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('b', `${i}`),
'store',
);
Game.tooltip.draw(this, () => CreateTooltip('b', `${i}`), 'store');
Game.tooltip.wobble();
};
}
@@ -38,11 +30,7 @@ function ReplaceTooltipLump() {
TooltipLumpBackup = l('lumps').onmouseover; // eslint-disable-line no-unused-vars
l('lumps').onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('s', 'Lump'),
'this',
);
Game.tooltip.draw(this, () => CreateTooltip('s', 'Lump'), 'this');
Game.tooltip.wobble();
};
}
@@ -55,11 +43,7 @@ function ReplaceTooltipGarden() {
if (Game.Objects.Farm.minigameLoaded) {
l('gardenTool-1').onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('ha', 'HarvestAllButton'),
'this',
);
Game.tooltip.draw(this, () => CreateTooltip('ha', 'HarvestAllButton'), 'this');
Game.tooltip.wobble();
};
Array.from(l('gardenPlot').children).forEach((child) => {
@@ -67,11 +51,7 @@ function ReplaceTooltipGarden() {
// eslint-disable-next-line no-param-reassign
child.onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('p', [`${coords[0]}`, `${coords[2]}`]),
'this',
);
Game.tooltip.draw(this, () => CreateTooltip('p', [`${coords[0]}`, `${coords[2]}`]), 'this');
Game.tooltip.wobble();
};
});
@@ -83,11 +63,7 @@ function ReplaceTooltipPantheon() {
for (let i = 0; i < 11; i += 1) {
l(`templeGod${i}`).onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('pag', i),
'this',
);
Game.tooltip.draw(this, () => CreateTooltip('pag', i), 'this');
Game.tooltip.wobble();
};
}
@@ -96,10 +72,7 @@ function ReplaceTooltipPantheon() {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(
this,
() => CreateTooltip('pas', [
i,
Game.Objects.Temple.minigame.slot[i],
]),
() => CreateTooltip('pas', [i, Game.Objects.Temple.minigame.slot[i]]),
'this',
);
Game.tooltip.wobble();