Use CookieMonsterFramework for save/load, infoMenu
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { CMOptions } from '../../Config/VariablesAndData';
|
||||
|
||||
/**
|
||||
* This function fixes Game.mouseY as a result of bars that are added by CookieMonster
|
||||
* It is called by Game.UpdateWrinklers(), Game.UpdateSpecial() and the .onmousover of the BigCookie
|
||||
* before execution of their actual function
|
||||
*/
|
||||
export default function FixMouseY(target) {
|
||||
if (CMOptions.TimerBar === 1 && CMOptions.TimerBarPos === 0) {
|
||||
if (
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.TimerBar === 1 &&
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.TimerBarPos === 0
|
||||
) {
|
||||
const timerBarHeight = parseInt(l('CMTimerBar').style.height, 10);
|
||||
Game.mouseY -= timerBarHeight;
|
||||
target();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import jscolor from '@eastdesire/jscolor';
|
||||
import { CMOptions } from '../../Config/VariablesAndData';
|
||||
|
||||
import CMBeautify from '../../Disp/BeautifyAndFormatting/Beautify';
|
||||
import FormatTime from '../../Disp/BeautifyAndFormatting/FormatTime';
|
||||
import { AddAuraInfo, AddDragonLevelUpTooltip } from '../../Disp/Dragon/Dragon';
|
||||
@@ -86,7 +86,7 @@ export default function ReplaceNative() {
|
||||
*/
|
||||
Game.ClickProduct = function (what) {
|
||||
if (
|
||||
!CMOptions.BulkBuyBlock ||
|
||||
!Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.BulkBuyBlock ||
|
||||
Game.ObjectsById[what].bulkPrice < Game.cookies ||
|
||||
Game.buyMode === -1
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user