From 6582c624cea7cdaaff037d0aac37f8061e2d3236 Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Fri, 8 Aug 2025 16:59:34 +0100 Subject: [PATCH] Update lockpicking-game-phaser.js: Adjust pin interaction area to extend to the bottom of the keyway for improved gameplay mechanics. This change enhances user interaction by ensuring the pin is fully interactive within the game environment. --- js/minigames/lockpicking/lockpicking-game-phaser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/minigames/lockpicking/lockpicking-game-phaser.js b/js/minigames/lockpicking/lockpicking-game-phaser.js index 1f4b665..7f5c01c 100644 --- a/js/minigames/lockpicking/lockpicking-game-phaser.js +++ b/js/minigames/lockpicking/lockpicking-game-phaser.js @@ -947,8 +947,8 @@ export class LockpickingMinigamePhaser extends MinigameScene { pin.springChannelRect.lineStyle(1, 0x1a1a1a); pin.springChannelRect.strokeRect(-13, 3, 26, springChannelHeight - 3); - // Make pin interactive - 25% less wide, full height from spring top to pin bottom (extended down) - pin.container.setInteractive(new Phaser.Geom.Rectangle(-18.75, -110, 37.5, 140), Phaser.Geom.Rectangle.Contains); + // Make pin interactive - 25% less wide, full height from spring top to bottom of keyway (extended down) + pin.container.setInteractive(new Phaser.Geom.Rectangle(-18.75, -110, 37.5, 230), Phaser.Geom.Rectangle.Contains); // Add pin number const pinText = this.scene.add.text(0, 40, (i + 1).toString(), {