Skip to content

Latest commit

 

History

History
111 lines (54 loc) · 1.29 KB

File metadata and controls

111 lines (54 loc) · 1.29 KB

Home > bitburner > WarehouseAPI > setSmartSupplyOption

WarehouseAPI.setSmartSupplyOption() method

Set whether smart supply uses leftovers before buying.

Signature:

setSmartSupplyOption(
    divisionName: string,
    city: CityName,
    materialName: CorpMaterialName,
    option: CorpSmartSupplyOption,
  ): void;

Parameters

Parameter

Type

Description

divisionName

string

Name of the division

city

CityName

Name of the city

materialName

CorpMaterialName

Name of the material

option

CorpSmartSupplyOption

Smart supply option. Set "leftovers" to use leftovers, "imports" to use only imported materials, and "none" to not use stored materials.

Returns:

void

Remarks

RAM cost: 20 GB