Skip to content

Commit

Permalink
Community service choice redirects (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinn committed Jan 26, 2022
1 parent f561819 commit 1ad7a1f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/net/sourceforge/kolmafia/request/AdventureRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,15 @@ public static final void handleServerRedirect(String redirectLocation) {
return;
}

if (redirectLocation.startsWith("council.php") || redirectLocation.startsWith("ascend.php")) {
// Community Service can redirect to both council.php and ascend.php
AdventureRequest.ZONE_UNLOCK.run();
return;
}

RequestSynchFrame.showRequest(AdventureRequest.ZONE_UNLOCK);
RequestLogger.printLine("Unrecognized choice.php redirect: " + redirectLocation);
RequestLogger.updateSessionLog("Unrecognized choice.php redirect: " + redirectLocation);
KoLmafia.updateDisplay(MafiaState.ABORT, "Unknown adventure type encountered.");
}

Expand Down

0 comments on commit 1ad7a1f

Please sign in to comment.