bitburner-src/markdown/bitburner.warehouseapi.md
Olivier Gagnon ceb2a48d9f update doc
2022-03-17 16:50:46 -04:00

3.4 KiB

Home > bitburner > WarehouseAPI

WarehouseAPI interface

Corporation Warehouse API

Signature:

export interface WarehouseAPI 

Remarks

Requires the Warehouse API upgrade from your corporation.

Methods

Method Description
bulkPurchase(divisionName, cityName, materialName, amt) Set material to bulk buy
buyMaterial(divisionName, cityName, materialName, amt) Set material buy data
cancelExportMaterial(sourceDivision, sourceCity, targetDivision, targetCity, materialName, amt) Cancel material export
discontinueProduct(divisionName, productName) Discontinue a product.
exportMaterial(sourceDivision, sourceCity, targetDivision, targetCity, materialName, amt) Set material export data
getMaterial(divisionName, cityName, materialName) Get material data
getProduct(divisionName, productName) Get product data
getPurchaseWarehouseCost() Gets the cost to purchase a warehouse
getUpgradeWarehouseCost(adivisionName, acityName) Gets the cost to upgrade a warehouse to the next level
getWarehouse(divisionName, cityName) Get warehouse data
hasWarehouse(adivisionName, acityName) Check if you have a warehouse in city
makeProduct(divisionName, cityName, productName, designInvest, marketingInvest) Create a new product
purchaseWarehouse(divisionName, cityName) Purchase warehouse for a new city
sellMaterial(divisionName, cityName, materialName, amt, price) Set material sell data.
sellProduct(divisionName, cityName, productName, amt, price, all) Set product sell data.
setMaterialMarketTA1(divisionName, cityName, materialName, on) Set market TA 1 for a material.
setMaterialMarketTA2(divisionName, cityName, materialName, on) Set market TA 2 for a material.
setProductMarketTA1(divisionName, productName, on) Set market TA 1 for a product.
setProductMarketTA2(divisionName, productName, on) Set market TA 2 for a product.
setSmartSupply(divisionName, cityName, enabled) Set smart supply
setSmartSupplyUseLeftovers(divisionName, cityName, materialName, enabled) Set whether smart supply uses leftovers before buying
upgradeWarehouse(divisionName, cityName) Upgrade warehouse