Toolasha - Enhanced tools for Milky Way Idle.
Zoznam verzií skriptu, ktorých kód bol aktualizovaný. Zobraziť všetky verzie.
🔖 chore: bump version to 0.4.964
Includes:
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 [email protected]
🐛 fix: defer profit calculations to prevent character switch lag
🐛 fix: correct efficiency calculation in actions breakdown
Merge pull request #15 from vidonnus/fix/actions-breakdown-efficiency
✨ feat: add total profit calculation to queue popup
✨ feat: add queue value calculation mode setting (profit vs estimated value)
⚡️ perf: increase profit calculation timeout from 100ms to 500ms
Merge pull request #14 from vidonnus/feat/queue-total-profit
✨ feat: add queue value calculation to queue popup
🐛 fix: include efficiency multiplier in material cost line items
Merge pull request #13 from vidonnus/fix/efficiency-material-costs
✨ feat: add 3-digit precision formatter for trade history prices
Merge pull request #12 from vidonnus/feature/3-digit-price-formatter
🐛 fix: standardize modifier display and add achievement gathering bonus
Merge pull request #11 from vidonnus/fix/standardize-modifier-display
🐛 fix: standardize modifier display across action types
✨ feat: display market tax as separate cost in profit breakdown
Merge pull request #10 from vidonnus/feature/market-tax-display
🐛 fix: correct pricing mode buy/sell side logic for profit calculations
Merge pull request #9 from vidonnus/fix/pricing-mode-buy-sell-logic
Fix character_switched event data property name
Changed data.name to data.newName to match the actual property emitted by data-manager.js character_switched event.
Before: console.log showed 'undefined' After: console.log will show actual character name
🐛 fix: transmutation percentages and console log
Fix transmutation percentages disappearing when clicking items in Item Dictionary
Fix console log showing undefined character name
Version: 0.4.963
Fix critical memory leaks from accumulating event listeners
Problem Analysis (from user performance profiling):
Root Causes Identified:
isSwitching flag not reset in finally block (feature-registry.js)
DataManager event listeners never removed (7 files affected)
PerformanceEventTiming accumulation
Detached SVG retention
Files Modified:
src/core/feature-registry.js
src/features/actions/max-produceable.js
src/features/actions/gathering-stats.js
src/features/inventory/inventory-sort.js
src/features/inventory/inventory-badge-prices.js
src/features/tasks/task-icons.js
src/features/notifications/empty-queue-notification.js
Technical Implementation Pattern:
class Feature { constructor() { this.eventHandler = null; // Store reference } initialize() { // Store function reference (NOT anonymous) this.eventHandler = () => { this.update(); }; dataManager.on('event_name', this.eventHandler); } disable() { // Remove using stored reference if (this.eventHandler) { dataManager.off('event_name', this.eventHandler); this.eventHandler = null; } } }
Expected Results:
Testing Recommendation: User should test by switching characters 5+ times and monitoring:
Fix transmutation percentages disappearing on item click
Problem:
Root Cause Analysis:
Solution:
Technical Changes:
Result:
Add race condition guards to prevent memory leak during character switches
This addresses potential memory leaks when rapidly switching between characters. The race condition could cause features to initialize multiple times without proper cleanup, leading to duplicate event listeners and memory growth.
Needs user feedback to confirm if this resolves reported memory leak issues.
v0.4.962 - Fix inventory badge prices and consolidate calculation
Add transmutation rate percentages and networth quantity formatting
New Features:
Settings:
Files:
Add action panel pin feature with shared sort manager (v0.4.960)
v0.4.959 - Remove debug logging from Net Worth display
Fix Steam party member consumables export
Fix party mode export returning wrong player's data
🐛 fix: include Wisdom Tea in XP calculations
Merge pull request #3 from vidonnus/fix/wisdom-tea-xp
🐛 fix: display actual equipped wisdom item names instead of hardcoded label
Merge pull request #4 from vidonnus/fix/wisdom-item-display
🐛 fix: display actual equipped wisdom item names instead of hardcoded labels
💄 style: fix stopwatch emoji spacing in time displays
Merge pull request #5 from vidonnus/fix/stopwatch-emoji-spacing
💄 fix: stopwatch emoji spacing in time displays
🐛 fix: apply gourmet tea bonus to items/hr for brewing/cooking
Merge pull request #6 from vidonnus/fix/gourmet-tea-items-per-hour
🐛 fix: update skill XP percentage display in real-time
Merge pull request #7 from vidonnus/fix/skill-xp-percentage-realtime-update
Filter out player messages from dungeon tracker chat parsing
Fixed false positives where players talking about dungeon stats in chat were being parsed as actual system messages.
Changes:
This prevents tracking player chat like "qu: [0m 9s] [Average: 16m 22s]" as real dungeon completion messages.
Also includes alchemy profit fixes from earlier:
Enhance dungeon tracker player message filter
🐛 fix: correct marketplace listing order by matching quantities
Merge pull request #8 from vidonnus/fix/marketplace-listing-order
Fix Steam combat sim export returning empty data
Fix enhancement bonus calculation - correct HRID format for slot multipliers
Fixed critical bug where enhancement slot multipliers were not being applied correctly:
Example fix:
Affects all equipment stat calculations:
Fix combat task sorting for boss monsters
Boss monsters were not being included in the sortIndex map, causing them to default to sortIndex 999 and sort to the end of the task list.
Result: All combat task monsters (regular and boss) now sort by zone progression order.
Implement zone-based sorting for combat tasks
Combat tasks now sort by zone progression order instead of alphabetically.
Implementation:
Result: Combat tasks now sort by game progression (Fly → Jerry → ... → Infernal Abyss) Non-combat tasks remain alphabetically sorted.
Add task detection and taskSpeed calculation to dataManager
v0.4.956: Add task speed bonus support
Calculation: Base → Equipment Speed → Task Speed (multiplicative) Example: 8.00s → 6.72s (19% equip) → 5.77s (16.5% task)
Add dual-path data access for Steam in milkonomy-export
Fix duplicate setCurrentProfile call overwriting profile cache
Add dual-path data access for Steam users in combat-sim-export
Fix missing setCurrentProfile import
Fix Steam user profile exports - store character ID instead of null
Fix Steam user profile exports with memory-based caching
Fix combat sim clipboard export format for Player 1 import field
v0.4.953 - Fix profit display colors and processing detection
Fix action queue stats showing wrong action during party interrupts
Issue: When party leader pauses/resumes combat, the DOM updates instantly but WebSocket cache is stale. This caused action time display to match against queued actions instead of current action, showing wrong stats (e.g., '276 queued' from Crafting when actually doing party combat).
Root cause: Code used .find() to search ALL cached actions (current + queue), which could match queued actions when DOM showed current action name.
Fix: Only check cachedActions0. If DOM doesn't match current action, display nothing until cache updates.
Prevents race condition between DOM update and WebSocket update.
Fix enhancement protection items not being used
CRITICAL BUG FIX: Protection items like Black Bear Fluff were never being added to protection options, causing the simulator to use the expensive base item as protection instead.
Root cause: Code treated protectionItemHrids as array of arrays, but game data shows it's a flat array of strings. Array.isArray() check on string values always returned false, skipping all protection items.
Fix: Directly spread protectionItemHrids into options array.
Example impact:
v0.4.952
Add Top Order Age column to My Listings
v0.4.951
v0.4.950 - Fix tea efficiency: Apply skill level buffs to effective player level
v0.4.948: Enhanced alchemy profit calculator with detailed modifier breakdowns
Make trade history character-specific
Fix reversed buy price color logic
Fix sell price color logic to match buy logic
Both colors now indicate current market opportunity:
Colors show whether NOW is a good time to trade compared to your last price
Fix trade history color comparison to use current top orders
Add personal trade history feature (v0.4.946)
Fix config settings not loading with character data (v0.4.944)
Root cause: Race condition where config.initialize() ran before character data loaded, resulting in empty settingsMap. Features checking getSetting() received false, causing them to skip initialization.
Impact: ALL features that check config.getSetting() failed to initialize, including Estimated Listing Age, network alerts, and others.
Flow:
Result: Features now properly initialize with user settings on both initial load and character switch.
v0.4.945: Fix reactive colors & Milkonomy export
Fix config API bug: Changed config.on() to config.onSettingChange()
Implement reactive Script Accent Color for all features
Fix Milkonomy export ownership check
Market data refactoring (Phase 2)
Fix settings tab disappearing on character switch (v0.4.943)
Root cause: Duplicate event listener accumulation causing race conditions and timing mismatches between cleanup and re-initialization.
Pattern: Follows action-time-display.js proven working pattern for character switch handling.
Result: Settings tab now persists correctly through multiple character switches.
Zobraziť všetky verzie skriptu