You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: gear optimizer was ignoring proposed gear (calc_stats hypothetical mode)
User caught it: the gear_target_optimizer's "162 SPD ceiling" for Venomage was
wrong — she can reach ~263. Root cause: calc_stats(hero, artifacts, account)
IGNORES the passed `artifacts` when the hero is in the computed-stats cache.
It copies the mod's artifact_bonus column (the hero's CURRENTLY EQUIPPED gear),
so the optimizer's oracle returned identical stats for every candidate build —
the search was a no-op returning current stats.
Fix: add calc_stats(..., hypothetical=True). It excludes the gear-DEPENDENT
columns (artifact_bonus + the mastery_bonus Lore-of-Steel delta) and recomputes
artifact / set / mastery / LoS bonuses from the PASSED gear on top of
base_computed + gear-independent columns (affinity/arena/empower/blessing/
relic/faction/great-hall). gear_target_optimizer._stats_for now passes
hypothetical=True.
Default path unchanged — the sim and CB optimizers still get game-truth current
stats (regression: same 2 pre-existing failures, no new ones). Verified:
Venom max-SPD build now 263 (was 162); SPD=200 min reachable; recommender
--optimize produces a real high-SPD damage build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments