bitburner-src/markdown/bitburner.warehouseapi.md
Mughur 1f98eecb57
CORP: rework (#428)
* corp overhaul: Corp production quality now depends on materials

* corp overhaul: Product price can be set separately for each city

* corp overhaul: export uses relatives

* corp overhaul: ignore energy in quality

* corp overhaul: getProduct() is city dependant

* corp overhaul: bulkbuy available from start

* corp overhaul: add multibuy for leveled upgrads

* corp overhaul: changes to UI

* corp overhaul: base quality 1, reqmat changes

* corp overhaul: puchased material quality is 1

* corp overhaul: get rid of the text box from ta2

* corp overhaul: sold shares limitations

* corp overhaul: coffee -> tea, training -> intern

* corp overhaul: smartsupply has multiple options

* corp overhaul: restart, literature, investore, ui

* corp overhaul: nerf advertising

* corp overhaul: bunch of stuff
2023-03-18 03:12:43 +02:00

3.5 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, city, materialName, amt) Set material to bulk buy
buyMaterial(divisionName, city, 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, city, materialName) Get material data
getProduct(divisionName, city, productName) Get product data
getUpgradeWarehouseCost(divisionName, city, amt) Gets the cost to upgrade a warehouse to the next level
getWarehouse(divisionName, city) Get warehouse data
hasWarehouse(divisionName, city) Check if you have a warehouse in city
limitMaterialProduction(divisionName, city, materialName, qty) Limit Material Production.
limitProductProduction(divisionName, city, productName, qty) Limit Product Production.
makeProduct(divisionName, city, productName, designInvest, marketingInvest) Create a new product
purchaseWarehouse(divisionName, city) Purchase warehouse for a new city
sellMaterial(divisionName, city, materialName, amt, price) Set material sell data.
sellProduct(divisionName, city, productName, amt, price, all) Set product sell data.
setMaterialMarketTA1(divisionName, city, materialName, on) Set market TA 1 for a material.
setMaterialMarketTA2(divisionName, city, materialName, on) Set market TA 2 for a material.
setProductMarketTA1(divisionName, city, productName, on) Set market TA 1 for a product.
setProductMarketTA2(divisionName, city, productName, on) Set market TA 2 for a product.
setSmartSupply(divisionName, city, enabled) Set smart supply
setSmartSupplyOption(divisionName, city, materialName, option) Set whether smart supply uses leftovers before buying
upgradeWarehouse(divisionName, city, amt) Upgrade warehouse