Skip to main content

find_storage

Function find_storage 

Source
pub fn find_storage(
    sites: &[StorageSite],
    storages: &[Storage],
    materials: &[RawMaterial],
    category: u32,
    cell: i32,
    home: i32,
    map: &mut impl StorageSearchMap,
    rng: &mut Random,
) -> Option<StorageMatch>
Expand description

Strict rank improvements, radius-list precedence, then storage. The covered-home flag is sticky after eligible material selection, even if its slot fails.

Original: FUN_140093200.