mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
1.9 KiB
1.9 KiB
OfficeAPI interface
Corporation Office API
Signature:
export interface OfficeAPI
Remarks
requires the Office API upgrade from your corporation.
Methods
Method | Description |
---|---|
buyCoffee(divisionName, city) | Buy coffee for your employees |
getHireAdVertCost(divisionName) | Get the cost to hire AdVert. |
getHireAdVertCount(divisionName) | Get the number of times you have hired AdVert. |
getOffice(divisionName, city) | Get data about an office |
getOfficeSizeUpgradeCost(divisionName, city, asize) | Cost to Upgrade office size. |
getResearchCost(divisionName, researchName) | Get the cost to unlock research |
hasResearched(divisionName, researchName) | Gets if you have unlocked a research |
hireAdVert(divisionName) | Hire AdVert. |
hireEmployee(divisionName, city, employeePosition) | Hire an employee. |
research(divisionName, researchName) | Purchase a research |
setAutoJobAssignment(divisionName, city, job, amount) | Set the auto job assignment for a job |
throwParty(divisionName, city, costPerEmployee) | Throw a party for your employees |
upgradeOfficeSize(divisionName, city, size) | Upgrade office size. |