src/net/sourceforge/kolmafia/session/MallPriceManager.java
/** Utility method used to search the mall for a search string */
Utility method used to search the mall for a search string
Utility method used to search the mall for a search string
public static final List<PurchaseRequest> searchMall(
      final String searchString, final int maximumResults) {
    List<PurchaseRequest> results = new ArrayList<>();
    if (searchString == null) {
      return results;
    }
    if (GenericRequest.abortIfInFightOrChoice()) {
      return results;
    }
    String formatted = MallSearchRequest.getSearchString(searchString);
    MallSearchRequest request = newMallSearchRequest(formatted, maximumResults, results);
    RequestThread.postRequest(request);
    Collections.sort(results);
    return results;
  }
public static final List < PurchaseRequest > searchMall ( final String searchString , final int maximumResults ) { List < PurchaseRequest > results = new ArrayList < > ( ) ; if ( searchString == null ) { return results ; } if ( GenericRequest . abortIfInFightOrChoice ( ) ) { return results ; } String formatted = MallSearchRequest . getSearchString ( searchString ) ; MallSearchRequest request = newMallSearchRequest ( formatted , maximumResults , results ) ; RequestThread . postRequest ( request ) ; Collections . sort ( results ) ; return results ; }
Utility method used to search the mall for a search string
Utility method used to search the mall for a search string
// Format the search string // Issue the search request // Sort the results by price, so that NPC stores are in the // appropriate place