From a4b357c680be7f44e36132080a8f50044af064c7 Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Wed, 20 May 2026 21:44:31 -0700 Subject: [PATCH] Increase NPC interaction radius to 200px for easier triggering --- game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 2e2ab50..65cf15c 100644 --- a/game.js +++ b/game.js @@ -430,7 +430,7 @@ class Game { const dx = this.state.npcWorldX - this.state.worldX; const dy = this.state.npcWorldY - this.state.worldY; const dist = Math.sqrt(dx * dx + dy * dy); - const near = !(this.state.npcWorldX === 0 && this.state.npcWorldY === 0) && dist < 120; + const near = !(this.state.npcWorldX === 0 && this.state.npcWorldY === 0) && dist < 200; const hint = document.getElementById('map-talk-hint'); const bub = document.getElementById('npc-bubble'); @@ -492,7 +492,7 @@ class Game { if (this.state.npcWorldX === 0 && this.state.npcWorldY === 0) return false; const dx = this.state.npcWorldX - this.state.worldX; const dy = this.state.npcWorldY - this.state.worldY; - return Math.sqrt(dx * dx + dy * dy) < 120; + return Math.sqrt(dx * dx + dy * dy) < 200; } _talkToNPC() {