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
refactor(combat): consolidate weapon colors into single source of truth
Eliminated 32-entry duplicate weaponColors map from updateHUD() — all weapon
colors now derived from weaponTypes and evolutionRecipes definitions. Extracted
hexToColorStr() utility replacing 6 repeated inline toString(16).padStart(6,'0')
conversions. Also fixes a silent kunai color mismatch (0x2f2f2f vs #4a4a4a) that
the duplication caused.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,18 @@
2
2
3
3
All notable changes to Vibe Coder will be documented in this file.
4
4
5
+
## [0.6.9] - 2026-02-11
6
+
7
+
### Changed
8
+
-**Weapon color single source of truth** — Eliminated 32-entry duplicate `weaponColors` map in `updateHUD()`. All weapon colors now derived from `weaponTypes` and `evolutionRecipes` definitions, making color mismatches impossible when adding weapons
9
+
-**`hexToColorStr()` utility** — Extracted 6 repeated inline `toString(16).padStart(6, '0')` conversions into a single reusable method used by stage nodes, boss names, modifiers, boss announcements, mini-boss announcements, and evolution effects
10
+
-**`getWeaponColorStr()` lookup** — New method resolves any weapon type (base, evolved, or legendary) to its CSS color string by walking `weaponTypes` first, then `evolutionRecipes`
11
+
12
+
### Fixed
13
+
-**Kunai HUD color mismatch** — Kunai displayed as `#4a4a4a` in the HUD but was defined as `0x2f2f2f` in `weaponTypes`. The duplicate color map had drifted. Now impossible since colors derive from the single definition
0 commit comments