feat(hall-of-fame): 명예의 전당 상세 UI 및 전투 스탯 저장 추가

- CombatStats에 toJson/fromJson 직렬화 메서드 추가
- HallOfFameEntry에 finalStats(CombatStats) 필드 추가
- 명예의 전당 상세 다이얼로그에서 전투 스탯, 장비, 스펠 표시
- GameState에 combatStats 접근자 추가
- game_text_l10n에 명예의 전당 관련 텍스트 추가
This commit is contained in:
JiWoong Sul
2025-12-24 17:20:52 +09:00
parent c1db1fd5d3
commit df5fdbaac2
8 changed files with 296 additions and 35 deletions

View File

@@ -287,8 +287,11 @@ class ProgressService {
progress = progress.copyWith(currentCombat: combatForReset);
}
// 전투 상태 초기화 및 물약 사용 기록 초기화
progress = progress.copyWith(currentCombat: null);
// 전투 상태 초기화, 몬스터 처치 수 증가 및 물약 사용 기록 초기화
progress = progress.copyWith(
currentCombat: null,
monstersKilled: progress.monstersKilled + 1,
);
final resetPotionInventory = nextState.potionInventory.resetBattleUsage();
nextState = nextState.copyWith(
progress: progress,
@@ -1331,8 +1334,11 @@ class ProgressService {
lastCombatEvents: lastCombatEvents,
);
// 전투 상태 초기화
final progress = state.progress.copyWith(currentCombat: null);
// 전투 상태 초기화 및 사망 횟수 증가
final progress = state.progress.copyWith(
currentCombat: null,
deathCount: state.progress.deathCount + 1,
);
return state.copyWith(
equipment: emptyEquipment,