diff --git a/src/scenes/GameScene.ts b/src/scenes/GameScene.ts index af8ffde..20ed2f4 100644 --- a/src/scenes/GameScene.ts +++ b/src/scenes/GameScene.ts @@ -548,9 +548,15 @@ export class GameScene extends BaseScene { endDay() { this.customerSpawnTimer.destroy(); + // Return employees to their starting positions + this.employees.forEach((e) => { + const path = new Phaser.Curves.Path(); + path.moveTo(e.x, e.y); + path.lineTo(e.startX, e.startY); + e.walk(path); + }); + //this.stations.forEach((s) => s.returnItems()); - // Fix this later - // this.employees.forEach((e) => e.walkTo(e.startX, e.startY)); this.resumeInvButton(); this.cycleCount++; this.restockShop();