All 20 T5 tables regenerated from the current wowtbc.gg page-data JSON (same group/raid-variant extraction as T4/T6): fixes 9 stale items (Quagmirran's Eye trinket, Corruptor set, Shapeshifter's Signet, Ranger-General's Chestguard, Band of Eternity v2, etc.) and aligns slot sets with the site's default view. Warlock T5 now splits: Affliction gets WARLOCK_AFFLICTION_T5 (Corruptor), Demonology and Destruction keep Voidheart. Source strings normalized: quest rewards and dungeon bosses dash-joined, professions space-joined, site typos folded (Mother Sharaz, Karanthress, Blood Furnace HC). 81 tests.
3.3 KiB
3.3 KiB
Amibis — WoW TBC Classic Addon
What it is
World of Warcraft addon (TBC Classic, Interface 20505) that compares the player's equipped gear against Best-in-Slot lists sourced from wowtbc.gg.
Project structure
Amibis/
├── Amibis.toc # Addon manifest — defines load order
├── Amibis.lua # Core: DB init, item scanning, stat aggregation, gear comparison, slash commands
├── Data/
│ └── BISLists.lua # BIS data store (class → spec → phase → slot)
├── UI/
│ └── ComparisonFrame.lua # Main UI frame, slot rows, stats panel, phase selector bar
└── Tests/ # Offline test suite (NOT in .toc — dev machine only)
├── run.lua # Entry point: lua5.4 Amibis/Tests/run.lua
├── harness.lua # describe/it/expect micro-framework
├── wow_mocks.lua # WoW API stubs + scriptable item fixtures
├── test_*.lua # Suites: data integrity, stat scanning, gear comparison
└── README.md # Coverage, layout, how to add tests
Key facts
- Load order is defined in
Amibis.toc:Amibis.lua→Data/BISLists.lua→UI/ComparisonFrame.lua - Slash command:
/amibistoggles the UI;/amibis spec <SpecName>overrides auto-detected spec;/amibis spec clearresets override. Phase is selected by clicking phase segments in the phase bar (T4 | T5 | T6). - SavedVariables:
AmibisDB(account-wide, stores selected phase),AmibisCharDB(per-character, stores frame position + spec override) - Namespace pattern:
local addonName, ns = ...— all modules attach tons - Tests: offline suite in
Tests/(mocked WoW API, no client needed) — runlua5.4 Amibis/Tests/run.luafrom the repo root; seeTests/README.md. UI still verified in-game. - Currently: T4 (Phase 1), T5 (Phase 2), and T6 (Phase 3) populated — all refreshed from wowtbc.gg
page-dataJSON. Discipline Priest + Beast Mastery/Marksmanship Hunter + all three warlocks share spec-partner T6 lists (warlock T5 splits: Affliction = Corruptor, Demo/Destro = Voidheart). Druid Feral Combat + Paladin Protection/Retribution have T4/T6 only. Default phase is T6. Phase-progress bar measures completion against the latest available phase regardless of which phase is selected.
Adding new BIS data
- Add a
local CLASS_T4 = { ... }table inData/BISLists.luafollowing the existingPRIEST_T4structure - Register it in
BIS_DATAunder the appropriate class/spec/phase key - Each slot entry:
{ itemID, name, source, enchant? } - Ensure class name matches WoW's English class constant (e.g.
"WARRIOR", not"Warrior") - Phases are ordered via
PHASE_ORDER = { "T4", "T5", "T6" }— T4 = Phase 1 (Karazhan/Gruul/Magtheridon), T5 = Phase 2 (SSC/TK), T6 = Phase 3 (Black Temple/Hyjal). All phase data is sourced from wowtbc.ggpage-dataJSON (the per-phasebisvariants, group/raid-flagged). Affliction warlock has its own T5 list (Corruptor set); Demonology/Destruction share Voidheart.
UI conventions
- ElvUI-style dark backdrop (
{0.07, 0.07, 0.07}, alpha 0.95) - Color coding: green = BIS, yellow = upgrade available, gray = empty slot
- Max 17 visible rows; rows are clickable (Shift+click = chat link, Ctrl+click = dress-up)
- Stats panel shows: Healing, Spell Power, Intellect, Spirit, MP5, Haste, Crit