Home > bitburner > WarehouseAPI > setSmartSupplyOption
Set whether smart supply uses leftovers before buying.
Signature:
setSmartSupplyOption(
divisionName: string,
city: CityName,
materialName: CorpMaterialName,
option: CorpSmartSupplyOption,
): void;|
Parameter |
Type |
Description |
|---|---|---|
|
divisionName |
string |
Name of the division |
|
city |
Name of the city | |
|
materialName |
Name of the material | |
|
option |
Smart supply option. Set "leftovers" to use leftovers, "imports" to use only imported materials, and "none" to not use stored materials. |
Returns:
void
RAM cost: 20 GB