fix(server): restore portraits and batch costume choices and verify equipment persistence

This commit is contained in:
2026-10-06 16:35:35 +08:00
parent 68003bfb6b
commit 9e9e86a658
8 changed files with 347 additions and 21 deletions
+3
View File
@@ -360,6 +360,9 @@ func serve(args []string) (serveErr error) {
if err := login.AttachPresetSlots(deckStateStore); err != nil {
return fmt.Errorf("attach preset slots to login: %w", err)
}
if err := login.AttachPortrait(deckStateStore); err != nil {
return fmt.Errorf("attach persisted portrait to login: %w", err)
}
ownedItems, err := player.OpenInventory(stateRepository, starter)
if err != nil {
return fmt.Errorf("load owned inventory: %w", err)