Fix buying with block protection & exact cookies

The check was wrong, since it wouldn't allow you to buy a building
for the exact amount of cookies in your bank, for example when
you're trying to buy your first cursor after clicking exactly 15 times.
This commit is contained in:
Costas Basdekis
2023-03-12 11:05:35 +00:00
committed by Daniël van Noord
parent 54bb9f793b
commit 76d531a5b0
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -87,7 +87,7 @@ export default function ReplaceNative() {
Game.ClickProduct = function (what) { Game.ClickProduct = function (what) {
if ( if (
!Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.BulkBuyBlock || !Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.BulkBuyBlock ||
Game.ObjectsById[what].bulkPrice < Game.cookies || Game.ObjectsById[what].bulkPrice <= Game.cookies ||
Game.buyMode === -1 Game.buyMode === -1
) { ) {
BackupFunctions.ClickProduct(what); BackupFunctions.ClickProduct(what);