Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
ad1999f351
commit
2a74386b71
@ -642,7 +642,11 @@ final class GameState: CasinoGameState {
|
|||||||
private func waitForReveal(index: Int) async {
|
private func waitForReveal(index: Int) async {
|
||||||
guard settings.showAnimations else { return }
|
guard settings.showAnimations else { return }
|
||||||
|
|
||||||
if settings.revealStyle == .tap || settings.revealStyle == .squeeze {
|
let isBottomSlot = index % 2 == 0
|
||||||
|
let isInteractiveStyle = settings.revealStyle == .tap || settings.revealStyle == .squeeze
|
||||||
|
|
||||||
|
if isInteractiveStyle && isBottomSlot {
|
||||||
|
// Wait for user interaction only on Bottom (Home) cards
|
||||||
currentRevealIndex = index
|
currentRevealIndex = index
|
||||||
revealProgress = 0.0
|
revealProgress = 0.0
|
||||||
isWaitingForReveal = true
|
isWaitingForReveal = true
|
||||||
@ -651,7 +655,7 @@ final class GameState: CasinoGameState {
|
|||||||
revealContinuation = continuation
|
revealContinuation = continuation
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Auto Styles
|
// Auto-reveal for all cards in .auto style, and Top (Away) cards in interactive styles
|
||||||
try? await Task.sleep(for: flipDelay)
|
try? await Task.sleep(for: flipDelay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user