fix(game): 부활 서비스 및 게임 화면 UI 수정
This commit is contained in:
@@ -155,16 +155,21 @@ class ResurrectionService {
|
||||
];
|
||||
|
||||
// 기존 큐 초기화 후 부활 시퀀스만 설정
|
||||
// 첫 번째 태스크를 현재 태스크로 설정하여 즉시 표시
|
||||
final firstTask = resurrectionQueue.removeAt(0);
|
||||
nextState = nextState.copyWith(
|
||||
queue: QueueState(
|
||||
entries: resurrectionQueue, // 기존 큐 완전 제거
|
||||
entries: resurrectionQueue, // 나머지 큐
|
||||
),
|
||||
// 현재 태스크를 빈 상태로 설정하여 큐에서 다음 태스크를 가져오도록 함
|
||||
// 첫 번째 태스크를 현재 태스크로 직접 설정
|
||||
progress: nextState.progress.copyWith(
|
||||
currentTask: const TaskInfo(caption: '', type: TaskType.neutral),
|
||||
task: const ProgressBarState(
|
||||
currentTask: TaskInfo(
|
||||
caption: firstTask.caption,
|
||||
type: firstTask.taskType,
|
||||
),
|
||||
task: ProgressBarState(
|
||||
position: 0,
|
||||
max: 1, // 즉시 완료되어 큐에서 다음 태스크 가져옴
|
||||
max: firstTask.durationMillis,
|
||||
),
|
||||
currentCombat: null, // 전투 상태 명시적 초기화
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user