fix(speed): 배속 관련 버그 수정

- 광고 후 배속 적용 안됨: isShowingAd 플래그로 lifecycle reload 방지
- 배속 종료 후 복귀 안됨: setSpeed(_savedSpeedMultiplier) 추가
- 복귀 상자 장비 장착 안됨: _loop?.replaceState() 추가
- 세이브 로드 시 1배속 고정: 명예의 전당 해금 시 최소 2배속 보장
This commit is contained in:
JiWoong Sul
2026-01-19 19:39:32 +09:00
parent 03ff9c1ce8
commit d90543dd86
2 changed files with 27 additions and 3 deletions

View File

@@ -289,9 +289,12 @@ class _GamePlayScreenState extends State<GamePlayScreen>
}
// 모바일: 앱이 포그라운드로 돌아올 때 전체 재로드
// (광고 표시 중에는 reload 건너뛰기 - 배속 부스트 등 상태 유지)
if (appState == AppLifecycleState.resumed && isMobile) {
_audioController.resumeAll();
_reloadGameScreen();
if (!widget.controller.isShowingAd) {
_reloadGameScreen();
}
}
}
@@ -659,6 +662,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
speedBoostEndMs: widget.controller.monetization.speedBoostEndMs,
isPaidUser: widget.controller.monetization.isPaidUser,
onSpeedBoostActivate: _handleSpeedBoost,
isSpeedBoostActive: widget.controller.isSpeedBoostActive,
adSpeedMultiplier: widget.controller.adSpeedMultiplier,
has2xUnlocked: widget.controller.has2xUnlocked,
),