Skip to content

v0.4.2: surface 4 missing hair styles in the wardrobe#25

Merged
bjamba merged 1 commit into
mainfrom
release/v0.4.2
May 20, 2026
Merged

v0.4.2: surface 4 missing hair styles in the wardrobe#25
bjamba merged 1 commit into
mainfrom
release/v0.4.2

Conversation

@bjamba
Copy link
Copy Markdown
Owner

@bjamba bjamba commented May 18, 2026

What was broken

The character creator's hair carousel offers 11 styles: horns, spiky, cat-ears, pigtails, mohawk, antennae, long, bald, flame, mushroom, tentacles. But CosmeticCatalog's hair slot only listed 7, so bald / flame / mushroom / tentacles were selectable at hatch yet absent from the wardrobe carousel. The sprite matrices for all 11 are baked + bundled (you saw your flame-hair pet render correctly elsewhere) — pure catalog omission.

What this PR changes

  • Add the four missing hair entries to CosmeticCatalog.all as starters (matching the existing 7).
  • New CosmeticCatalogTests with two guard tests:
    • Every hair style in CharacterCreatorSwatches.hairStyles is also in CosmeticCatalog.
    • Every catalog hair entry corresponds to a valid hatch style (catches reverse drift).
  • Version: 0.4.1 → 0.4.2, CFBundleVersion 5 → 6.
  • CHANGELOG 0.4.2 entry.

Sweep results — no other mismatches

Quick audit across all 8 cosmetic slots: hat (7=7), shirt (6=6), pants (6=6), belt (2=2), cape (4=4), eyewear (5=5), held (8=8). Only hair was off (7 catalog vs 11 baked). No other UI drift.

Test plan

  • swift build && swift test clean (101 tests, +2 new guards)
  • swiftformat --lint . clean
  • ./scripts/check.sh passes
  • After merge: pet hatched with flame hair shows the flame entry in Wardrobe carousel (not just at hatch)

🤖 Generated with Claude Code

The character creator's hair carousel offered 11 styles
(horns / spiky / cat-ears / pigtails / mohawk / antennae / long / bald /
flame / mushroom / tentacles), but the wardrobe only listed 7 — the
catalog was missing bald, flame, mushroom, and tentacles. The sprite
matrices for all 11 were already baked + bundled, so this was purely a
catalog omission: pets hatched with one of the four "missing" styles
displayed correctly everywhere except in the wardrobe carousel.

Add the four missing entries as starters (matching the existing 7) and
add CosmeticCatalogTests as a guard so this drift can't recur.

101 tests passing (was 99); lint + guardrails clean.
@bjamba bjamba merged commit e97aaae into main May 20, 2026
1 check passed
@bjamba bjamba deleted the release/v0.4.2 branch May 20, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant