v0.13.18 - Add channeling score debug logging
- Logs the top candidate from findBestChannelingTarget() on every Q press - Shows: spell, score, dur, maxDur, mpCost, emptiness% - Next time channeling doesn't fire on a buff, the console will show the actual computed scores so we can see what's happening
This commit is contained in:
parent
e74c97f87a
commit
49c7ce9cab
5 changed files with 9 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name HV Unified
|
||||
// @namespace hvunified
|
||||
// @version 0.13.17
|
||||
// @version 0.13.18
|
||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||
// @author GaboGG + Hermes
|
||||
// @match *://*.hentaiverse.org/*
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// CONFIG — default settings
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
const VERSION = '0.13.17';
|
||||
const VERSION = '0.13.18';
|
||||
|
||||
const CFG = {
|
||||
// — Battle automation
|
||||
|
|
@ -914,6 +914,7 @@ function findBestChannelingTarget() {
|
|||
|
||||
if (candidates.length > 0) {
|
||||
candidates.sort((a, b) => b.score - a.score);
|
||||
console.log(`%c[HV] ch score: ${candidates[0].spell}=${candidates[0].score.toFixed(1)} (dur=${candidates[0].dur}, max=${candidates[0].maxDur}, mp=${candidates[0].mpCost}, empty=${(candidates[0].emptiness*100).toFixed(0)}%)`, 'color:#bb0');
|
||||
// Only use a buff if it actually needs refreshing (score >= 30 means
|
||||
// e.g. 30% emptiness on a 100-MP spell, or 60% on a 50-MP spell)
|
||||
if (candidates[0].score >= 30) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name HV Unified
|
||||
// @namespace hvunified
|
||||
// @version 0.13.17
|
||||
// @version 0.13.18
|
||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||
// @author GaboGG + Hermes
|
||||
// @match *://*.hentaiverse.org/*
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// CONFIG — default settings
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
const VERSION = '0.13.17';
|
||||
const VERSION = '0.13.18';
|
||||
|
||||
const CFG = {
|
||||
// — Battle automation
|
||||
|
|
@ -914,6 +914,7 @@ function findBestChannelingTarget() {
|
|||
|
||||
if (candidates.length > 0) {
|
||||
candidates.sort((a, b) => b.score - a.score);
|
||||
console.log(`%c[HV] ch score: ${candidates[0].spell}=${candidates[0].score.toFixed(1)} (dur=${candidates[0].dur}, max=${candidates[0].maxDur}, mp=${candidates[0].mpCost}, empty=${(candidates[0].emptiness*100).toFixed(0)}%)`, 'color:#bb0');
|
||||
// Only use a buff if it actually needs refreshing (score >= 30 means
|
||||
// e.g. 30% emptiness on a 100-MP spell, or 60% on a 50-MP spell)
|
||||
if (candidates[0].score >= 30) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// CONFIG — default settings
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
const VERSION = '0.13.17';
|
||||
const VERSION = '0.13.18';
|
||||
|
||||
const CFG = {
|
||||
// — Battle automation
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name HV Unified
|
||||
// @namespace hvunified
|
||||
// @version 0.13.17
|
||||
// @version 0.13.18
|
||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||
// @author GaboGG + Hermes
|
||||
// @match *://*.hentaiverse.org/*
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@ function findBestChannelingTarget() {
|
|||
|
||||
if (candidates.length > 0) {
|
||||
candidates.sort((a, b) => b.score - a.score);
|
||||
console.log(`%c[HV] ch score: ${candidates[0].spell}=${candidates[0].score.toFixed(1)} (dur=${candidates[0].dur}, max=${candidates[0].maxDur}, mp=${candidates[0].mpCost}, empty=${(candidates[0].emptiness*100).toFixed(0)}%)`, 'color:#bb0');
|
||||
// Only use a buff if it actually needs refreshing (score >= 30 means
|
||||
// e.g. 30% emptiness on a 100-MP spell, or 60% on a 50-MP spell)
|
||||
if (candidates[0].score >= 30) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue