feat(ui): 화면 및 공통 위젯 개선
- FrontScreen 개선 - GamePlayScreen, GameSessionController 업데이트 - ArenaBattleScreen, NewCharacterScreen 정리 - AsciiDisintegrateWidget 추가
This commit is contained in:
@@ -1181,6 +1181,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
state.progress.currentCombat?.monsterStats.hpCurrent,
|
||||
monsterHpMax: state.progress.currentCombat?.monsterStats.hpMax,
|
||||
monsterName: state.progress.currentCombat?.monsterStats.name,
|
||||
monsterLevel: state.progress.currentCombat?.monsterStats.level,
|
||||
),
|
||||
|
||||
// Experience 바
|
||||
|
||||
@@ -107,6 +107,14 @@ class GameSessionController extends ChangeNotifier {
|
||||
if (isNewGame) {
|
||||
_sessionStats = SessionStatistics.empty();
|
||||
await _statisticsStorage.recordGameStart();
|
||||
} else {
|
||||
// 게임 로드 시 저장된 사망 횟수 복원
|
||||
_sessionStats = _sessionStats.copyWith(
|
||||
deathCount: state.progress.deathCount,
|
||||
questsCompleted: state.progress.questCount,
|
||||
monstersKilled: state.progress.monstersKilled,
|
||||
playTimeMs: state.skillSystem.elapsedMs,
|
||||
);
|
||||
}
|
||||
_initPreviousValues(state);
|
||||
|
||||
@@ -341,7 +349,7 @@ class GameSessionController extends ChangeNotifier {
|
||||
|
||||
final entry = HallOfFameEntry.fromGameState(
|
||||
state: _state!,
|
||||
totalDeaths: _sessionStats.deathCount,
|
||||
totalDeaths: _state!.progress.deathCount, // GameState에 저장된 값 사용
|
||||
monstersKilled: _state!.progress.monstersKilled,
|
||||
combatStats: combatStats,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user