// ═══════════════════════════════════════════════════════════════════════ // PUBLIC API — window.HV for console power users // ═══════════════════════════════════════════════════════════════════════ window.HV = { state: () => STATE, config: () => CFG, set: (k, v) => setConfig(k, v), action: () => getRecommendedAction(), execute: (a) => executeAction(a || getRecommendedAction()), tier: () => STATE.tier, stats: () => JSON.parse(localStorage[SP + 'stats'] || '{"battles":0,"credits":0,"drops":0}'), settings: () => toggleSettings(), advice: () => { const s = detectFightingStyle(); return { style: s, attrs: getAttrAdvice(s), spells: getSpellAdvice(), difficulty: getDifficultyAdvice() }; }, difficulty: () => getDifficultyAdvice(), // Battle log analysis log: () => getBattleLog(), summary: () => getBattleSummary(), saveLog: () => {}, // Auto-saves in real-time now // Gear database gear: () => getGearDB(), gearSummary: () => logGearSummary(), scrapeGear: () => autoScrapeGear(), gearDebug: () => debugScrapeGear(), captureTooltips: () => captureAllTooltips(), };