// --- NPC Interaction Window Logic ---
function showNpcInteraction(name, text) {
document.getElementById('npc-interaction-title').textContent = name || '';
document.getElementById('npc-interaction-text').textContent = text || '';
}
function hideNpcInteraction() {
document.getElementById('npc-interaction-title').textContent = '';
document.getElementById('npc-interaction-text').textContent = '';
}
document.getElementById('npc-interaction-close').onclick = hideNpcInteraction;
// Optionally, expose to game.js or other scripts:
window.showNpcInteraction = showNpcInteraction;
window.hideNpcInteraction = hideNpcInteraction;