generated from nhcarrigan/template
fix: save character name correctly and show story on character sheet
- Load route syncs characterName from Player record so profile updates are reflected immediately on next load - Save route preserves Player record's characterName so auto-saves cannot overwrite profile updates - Public profile response now includes completedChapters - Character sheet panel displays completed story chapters with outcome - Removed stale CSS for old achievement/codex toast classes
This commit is contained in:
@@ -12,6 +12,7 @@ import type {
|
||||
import type { GameState } from "./gameState.js";
|
||||
import type { Player } from "./player.js";
|
||||
import type { ProfileSettings } from "./profileSettings.js";
|
||||
import type { CompletedChapter } from "./story.js";
|
||||
|
||||
interface AuthResponse {
|
||||
token: string;
|
||||
@@ -247,6 +248,11 @@ interface PublicProfileResponse {
|
||||
rarity: EquipmentRarity;
|
||||
bonus: EquipmentBonus;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Story chapters the player has completed and their chosen outcomes.
|
||||
*/
|
||||
completedChapters: Array<CompletedChapter>;
|
||||
}
|
||||
|
||||
interface UpdateProfileRequest {
|
||||
|
||||
Reference in New Issue
Block a user