- Deleted scripts/hud.js, scripts/event-translation.js, styles/hud.css, templates/hud.html. - Removed mod.api.getHud/openHud/closeHud/buildHudUpdatePayload exports. - Removed hudPosition setting (moved to combat-hud-hub). - Added hub integration: at ready, if combat-hud-hub is installed, register a 'pinned-achievements' section. The chatBubble listener now also pushes entries into that section via hub.api.pushFeedEntry. - Soft-dep on combat-hud-hub (optional); popover still works without the hub. - Tests: 57/57 passing covering sections A-G (rule engine, catalog, awarding, hooks wiring, hub integration, graceful degradation).
1.7 KiB
1.7 KiB
Changelog
All notable changes to It's Achievable are documented here.
[0.3.0] — 2026-06-20 (strip HUD; integrate with combat-hud-hub)
- Combat HUD removed.
scripts/hud.js,scripts/event-translation.js,styles/hud.css,templates/hud.htmldeleted. The HUD is now provided by the newcombat-hud-hubmodule. - API surface change (breaking for consumers calling
mod.api.getHud/openHud/closeHud/buildHudUpdatePayload). These four exports removed; their behavior lives incombat-hud-hub.api. - Pinned Achievements section. When
combat-hud-hubis installed, its-achievable registers apinned-achievementssection on the hub atready. ThechatBubblelistener now pushes awarded achievements into that section's feed viahub.api.pushFeedEntry. - Settings cleanup.
hudPositionsetting removed (now lives oncombat-hud-hub). - Tests: 57/57 passing in <2s covering sections A-G of
tests/PLAN.md.
[0.2.0] — 2026-06-19 (HUD strapped to foundry-hooks-lib envelope stream)
- HUD subscribes to foundry-hooks-lib's envelope stream (subscribeMany on combatStart, combatEnd, combatRound, combatTurn, createCombatant, deleteCombatant, dnd5e.rollAttackV2, dnd5e.rollDamageV2).
- HUD reads the active encounter via
battle-focus.api.getActiveEncounter()(soft-dep). - chatBubble listener draws the achievement popover.
[0.1.1] — 2026-06-19 (track the hax-hooks-lib → foundry-hooks-lib rename)
- Module id rename only; no behavior change.
[0.1.0] — 2026-06-18 (initial extraction from battle-focus v0.5.0-alpha.12)
- Achievements engine, custom rules, rewards, achievement wall, and combat HUD extracted from battle-focus into a standalone Foundry module.