Завершить интеграционную устойчивость ботов этапа 3
This commit is contained in:
@@ -67,15 +67,16 @@ public final class EarlyLevelScenarios {
|
||||
.step("Wait for the next volunteer", 2_000L, LevelPlaytestBot.Input.none(),
|
||||
EarlyLevelScenarios::respawnedAtStart)
|
||||
.step("Approach the saw", 3_000L, LevelPlaytestBot.Input.right(),
|
||||
snapshot -> snapshot.playerAlive()
|
||||
LevelPlaytestBot.whileDeathsAtMost(1, snapshot -> snapshot.playerAlive()
|
||||
&& snapshot.playerOnGround()
|
||||
&& snapshot.playerX() >= 280f)
|
||||
&& snapshot.playerX() >= 390f))
|
||||
.step("Take off before the saw", 1_000L, LevelPlaytestBot.Input.rightJump(),
|
||||
snapshot -> snapshot.playerAlive()
|
||||
LevelPlaytestBot.whileDeathsAtMost(1, snapshot -> snapshot.playerAlive()
|
||||
&& !snapshot.playerOnGround()
|
||||
&& snapshot.playerY() <= 680f)
|
||||
&& snapshot.playerY() <= 620f))
|
||||
.step("Clear the saw and plate body", 3_000L, LevelPlaytestBot.Input.right(),
|
||||
snapshot -> snapshot.playerAlive() && snapshot.playerX() >= 700f)
|
||||
LevelPlaytestBot.whileDeathsAtMost(1, snapshot ->
|
||||
snapshot.playerAlive() && snapshot.playerX() >= 700f))
|
||||
.step("Reach the relic through the open door", 5_000L, LevelPlaytestBot.Input.right(),
|
||||
GameView.AutomationSnapshot::completed)
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user