Added tooltips to Pantheon #597
This commit is contained in:
@@ -3,6 +3,7 @@ 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,
|
||||
@@ -57,6 +58,7 @@ export default function CMLoop() {
|
||||
CacheAllMissingUpgrades();
|
||||
CacheChain();
|
||||
CacheDragonCost();
|
||||
CachePantheonGods();
|
||||
|
||||
CacheSeasonSpec();
|
||||
CacheSellAllForChoEgg();
|
||||
|
||||
@@ -86,6 +86,40 @@ function ReplaceTooltipGarden() {
|
||||
}
|
||||
}
|
||||
|
||||
function ReplaceTooltipPantheon() {
|
||||
if (Game.Objects.Temple.minigameLoaded) {
|
||||
for (let i = 0; i < 11; i += 1) {
|
||||
l(`templeGod${i}`).onmouseover = function () {
|
||||
Game.tooltip.dynamic = 1;
|
||||
Game.tooltip.draw(
|
||||
this,
|
||||
function () {
|
||||
return CreateTooltip('pag', i);
|
||||
},
|
||||
'this',
|
||||
);
|
||||
Game.tooltip.wobble();
|
||||
};
|
||||
}
|
||||
for (let i = 0; i < 3; i += 1) {
|
||||
l(`templeSlot${i}`).onmouseover = function () {
|
||||
Game.tooltip.dynamic = 1;
|
||||
Game.tooltip.draw(
|
||||
this,
|
||||
function () {
|
||||
return CreateTooltip('pas', [
|
||||
i,
|
||||
Game.Objects.Temple.minigame.slot[i],
|
||||
]);
|
||||
},
|
||||
'this',
|
||||
);
|
||||
Game.tooltip.wobble();
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function call all functions that replace Game-tooltips with Cookie Monster enhanced tooltips
|
||||
*/
|
||||
@@ -100,6 +134,7 @@ export default function ReplaceTooltips() {
|
||||
LoadMinigames();
|
||||
ReplaceTooltipGarden();
|
||||
ReplaceTooltipGrimoire();
|
||||
ReplaceTooltipPantheon();
|
||||
ReplaceNativeGrimoire();
|
||||
};
|
||||
Game.LoadMinigames();
|
||||
|
||||
Reference in New Issue
Block a user