Fixing Pop All Normal wrinkler tooltip

This commit is contained in:
Tom committed 2021-06-16 21:32:23 -04:00
1 parent 23eb28e29c
commit 1905f9a953
4 files changed
+6 -6

No files matched your search

@@ -18,7 +18,7 @@ export default function CreateWrinklerButtons() {
};
popAllA.onmouseover = function () {
Game.tooltip.dynamic = 1;
Game.tooltip.draw(this, () => CreateTooltip('wb', 'PopAll'), 'this');
Game.tooltip.draw(this, () => CreateTooltip('wb', 'PopAllNormal'), 'this');
Game.tooltip.wobble();
};
l('sectionLeftExtra').children[0].append(popAllA);
@@ -1,4 +1,4 @@
import { CacheWrinklersFattest, CacheWrinklersTotal } from '../../../Cache/VariablesAndData';
import { CacheWrinklersFattest, CacheWrinklersNormal } from '../../../Cache/VariablesAndData';
import Beautify from '../../BeautifyAndFormatting/Beautify';
import { TooltipName } from '../../VariablesAndData';
import * as Create from '../CreateTooltip';
@@ -13,8 +13,8 @@ export default function WrinklerButton() {
const WrinklerReward = document.createElement('div');
WrinklerReward.id = 'CMWrinklerReward';
if (TooltipName === 'PopAll') {
WrinklerReward.textContent = Beautify(CacheWrinklersTotal);
if (TooltipName === 'PopAllNormal') {
WrinklerReward.textContent = Beautify(CacheWrinklersNormal);
} else if (TooltipName === 'PopFattest') {
WrinklerReward.textContent = Beautify(CacheWrinklersFattest[0]);
}