From 3724b53d1b63a678f0d768a5e1e91aa2d330afc5 Mon Sep 17 00:00:00 2001 From: Lumie Date: Tue, 20 Aug 2024 08:10:18 -0700 Subject: [PATCH] fixed random milky bugs --- src/components/ItemHandler.ts | 2 +- src/scenes/GameScene.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ItemHandler.ts b/src/components/ItemHandler.ts index 09a03f8..81293b8 100644 --- a/src/components/ItemHandler.ts +++ b/src/components/ItemHandler.ts @@ -186,7 +186,7 @@ export class ItemHandler { ct.happinessBonus -= 2.125; ct.maxHappiness = 4.01; ct.tipMultiplier*=0.25; - //ct.queueFail = true; + ct.queueFail(); return; } else { ct.happinessBonus += 0.5; diff --git a/src/scenes/GameScene.ts b/src/scenes/GameScene.ts index 98e3b59..e1c3ece 100644 --- a/src/scenes/GameScene.ts +++ b/src/scenes/GameScene.ts @@ -484,10 +484,10 @@ export class GameScene extends BaseScene { if (!this.viewedShopTutorial) { this.beginShopTutorial(0); return; - } - } else { - if(this.shopinventory.isOpen){ - this.toggleShop(); + } else { + if(this.shopinventory.isOpen){ + this.toggleShop(); + } } } this.setState(GameState.Day);