Skip to content

Commit

Permalink
Increased timeout for deadzones to 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
steve1316 committed Oct 6, 2021
1 parent ffd40d7 commit 92ad9a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ class Event(private val game: Game, private val missionName: String) {
}

// If the user does not have enough Treasures to host a Extreme or Impossible Raid, host a Very Hard Raid instead.
if (difficulty == "Extreme" && !game.imageUtils.waitVanish("event_raid_extreme", timeout = 3)) {
if (difficulty == "Extreme" && !game.imageUtils.waitVanish("event_raid_extreme", timeout = 10)) {
game.printToLog("[EVENT.TOKEN.DRAWBOXES] Not enough treasures to host Extreme Raid. Hosting Very Hard Raid instead...", tag = tag)
game.findAndClickButton("event_raid_very_hard")
} else if (difficulty == "Impossible" && !game.imageUtils.waitVanish("event_raid_impossible", timeout = 3)) {
} else if (difficulty == "Impossible" && !game.imageUtils.waitVanish("event_raid_impossible", timeout = 10)) {
game.printToLog("[EVENT.TOKEN.DRAWBOXES] Not enough treasures to host Impossible Raid. Hosting Very Hard Raid instead...", tag = tag)
game.findAndClickButton("event_raid_very_hard")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class GuildWars(private val game: Game, private val missionName: String) {
var tries = 10
game.printToLog("[GUILD.WARS] Now hosting $difficulty now...", tag = tag)
val locations = game.imageUtils.findAll("ap_30")
while (!game.imageUtils.waitVanish("ap_30", timeout = 3)) {
while (!game.imageUtils.waitVanish("ap_30", timeout = 10)) {
when (difficulty) {
"Very Hard" -> {
game.gestureUtils.tap(locations[0].x, locations[0].y, "ap_30")
Expand Down

0 comments on commit 92ad9a6

Please sign in to comment.