pub fn scan_storages(
sites: &[StorageSite],
storages: &[Storage],
materials: &[RawMaterial],
category: u32,
cell: i32,
home: Option<i32>,
best: i32,
map: &mut impl StorageSearchMap,
rng: &mut Random,
) -> (i32, Option<StorageMatch>)Expand description
The markets (radius list), then the storages, each taking a strictly better rank than best.
With home, a market whose radius covers the home ends the search after the markets; without
it, every storage is weighed. Returns the best rank and its match.
Original: FUN_140093200; the scan without a home is FUN_140093840.