fix(notification): Act 완료 토스트 메시지 인덱싱 버그 수정
- plotStageCount 인덱싱 오류 수정 (plotStageCount - 1 → -2) - 프롤로그 완료 시 "PROLOGUE COMPLETE!" 표시되도록 수정 - showActComplete(0)이 프롤로그 완료를 올바르게 처리
This commit is contained in:
@@ -77,10 +77,14 @@ class NotificationService {
|
||||
}
|
||||
|
||||
/// 막 완료 알림 (Act Complete)
|
||||
/// actNumber: 0=프롤로그, 1=Act I, 2=Act II, ...
|
||||
void showActComplete(int actNumber) {
|
||||
final title = actNumber == 0
|
||||
? 'PROLOGUE COMPLETE!'
|
||||
: 'ACT $actNumber COMPLETE!';
|
||||
show(GameNotification(
|
||||
type: NotificationType.actComplete,
|
||||
title: 'ACT $actNumber COMPLETE!',
|
||||
title: title,
|
||||
duration: const Duration(seconds: 3),
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user