diff --git a/lib/src/core/notification/notification_service.dart b/lib/src/core/notification/notification_service.dart index 926ec81..8ca9bf7 100644 --- a/lib/src/core/notification/notification_service.dart +++ b/lib/src/core/notification/notification_service.dart @@ -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), )); } diff --git a/lib/src/features/game/game_play_screen.dart b/lib/src/features/game/game_play_screen.dart index eeebfba..3361d95 100644 --- a/lib/src/features/game/game_play_screen.dart +++ b/lib/src/features/game/game_play_screen.dart @@ -105,10 +105,12 @@ class _GamePlayScreenState extends State _lastQuestCount = state.progress.questCount; // Act 완료 감지 (plotStageCount 증가) + // plotStageCount: 1=프롤로그 진행, 2=프롤로그 완료, 3=Act1 완료... + // 완료된 스테이지 인덱스 = plotStageCount - 2 (0=프롤로그, 1=Act1, ...) if (state.progress.plotStageCount > _lastPlotStageCount && _lastPlotStageCount > 0) { _specialAnimation = AsciiAnimationType.actComplete; - _notificationService.showActComplete(state.progress.plotStageCount - 1); + _notificationService.showActComplete(state.progress.plotStageCount - 2); _resetSpecialAnimationAfterFrame(); } _lastPlotStageCount = state.progress.plotStageCount;