Устранить нагрузочные флаки финальной матрицы

This commit is contained in:
2026-08-18 18:58:27 +03:00
parent 9d792bdee4
commit fa68e2e04a
4 changed files with 31 additions and 4 deletions
@@ -17,7 +17,8 @@ final class LateLevelScenarios {
LevelPlaytestBot.Input.rightJump(),
snapshot -> snapshot.playerX() >= 640f)
.step("Stand on the frozen block", 2_500L, LevelPlaytestBot.Input.none(),
snapshot -> snapshot.playerX() >= 626f
snapshot -> snapshot.playerOnGround()
&& snapshot.playerX() >= 626f
&& snapshot.playerY() >= 668f
&& snapshot.playerY() <= 690f)
.step("Land on the first ledge from the frozen block", 3_000L,
@@ -277,7 +278,8 @@ final class LateLevelScenarios {
&& (snapshot.playerOnMovingPlatform()
|| (snapshot.playerY() >= 770f
&& !Float.isNaN(snapshot.firstMovingPlatformY())
&& snapshot.firstMovingPlatformY() >= 780f)))
&& snapshot.firstMovingPlatformY() >= 750f
&& snapshot.firstMovingPlatformMovingDown())))
.step("Take off toward the moving lift", 1_000L,
LevelPlaytestBot.Input.rightJump(),
snapshot -> snapshot.playerAlive()
@@ -285,7 +287,8 @@ final class LateLevelScenarios {
|| snapshot.playerY() <= 670f))
.step("Board the moving lift", 2_000L,
LevelPlaytestBot.Input.right(),
GameView.AutomationSnapshot::playerOnMovingPlatform)
LevelPlaytestBot.whileDeathsAtMost(3,
GameView.AutomationSnapshot::playerOnMovingPlatform))
.step("Brake toward the lift center", 1_000L,
LevelPlaytestBot.Input.left(),
snapshot -> snapshot.playerOnMovingPlatform()