refactor(items): extract inline data tables from handleMsgMhfEnumeratePrice

Static data (GZ monster prices, LB prices, wanted list) cluttered the
handler with 130 lines of table literals. Moving them to a dedicated
tables file keeps the handler focused on serialization logic.
This commit is contained in:
Houmgaor
2026-02-24 15:34:51 +01:00
parent 759988ae8e
commit 76d139538b
3 changed files with 153 additions and 137 deletions

View File

@@ -135,4 +135,4 @@ Tests for those handlers either use stub handlers that skip repos or rely on int
**Fix:** Extract to package-level `var` declarations or a dedicated data file (following the pattern of `handlers_data_paper_tables.go`).
**Status:** Pending.
**Status:** **Done.** Extracted 3 inline data tables (LB prices, wanted list, GZ prices) and their anonymous struct types to `handlers_items_tables.go`. Handler function reduced from 164 to 35 lines.