Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Optimize dungeon difficulty selection v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpersi committed Nov 26, 2020
1 parent 4dddbcd commit 907b556
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/github/ilpersi/BHBot/DungeonThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,6 @@ public void run() {

int currentZone = readCurrentZone();
int vec = goalZone - currentZone; // movement vector
// BHBot.logger.info("Current zone: " + Integer.toString(currentZone) + " Target Zone: " + Integer.toString(goalZone));
while (vec != 0) { // move to the correct zone
if (vec > 0) {
// note that moving to the right will fail in case player has not unlocked the zone yet!
Expand Down Expand Up @@ -734,7 +733,6 @@ public void run() {

bot.browser.clickInGame(p.x, p.y);

bot.browser.readScreen(3 * Misc.Durations.SECOND);
// select difficulty (If D4 just hit enter):
if ((goalDungeon == 4) || (goalZone == 7 && goalDungeon == 3) || (goalZone == 8 && goalDungeon == 3)) { // D4, or Z7D3/Z8D3
specialDungeon = true;
Expand Down

0 comments on commit 907b556

Please sign in to comment.