Skip to content

Latest commit

 

History

History
178 lines (83 loc) · 2.47 KB

File metadata and controls

178 lines (83 loc) · 2.47 KB

Home > bitburner > OfficeAPI

OfficeAPI interface

Corporation Office API

Signature:

export interface OfficeAPI 

Remarks

Requires the Office API upgrade from your corporation.

Methods

Method

Description

buyTea(divisionName, city)

Buy tea 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, size)

Get the cost to upgrade an office.

getResearchCost(divisionName, researchName)

Get the cost to unlock a research.

hasResearched(divisionName, researchName)

Check if you unlocked a research.

hireAdVert(divisionName)

Hire AdVert.

hireEmployee(divisionName, city, employeePosition)

Hire an employee.

research(divisionName, researchName)

Purchase a research.

Some research is only available for product industries. This function does not do anything if you purchase that research for a material industry.

setJobAssignment(divisionName, city, job, amount)

Set the job assignment for a job.

throwParty(divisionName, city, costPerEmployee)

Throw a party for your employees.

upgradeOfficeSize(divisionName, city, size)

Upgrade office size.