Add totalExperience property to getOffice (#367)

This commit is contained in:
Snarling 2023-02-14 01:38:22 -05:00 committed by GitHub
parent 08e71c732b
commit b9a2953fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

@ -696,6 +696,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
avgEne: office.avgEne,
avgHap: office.avgHap,
avgMor: office.avgMor,
totalExperience: office.totalExp,
employeeProd: Object.assign({}, office.employeeProd),
employeeJobs: Object.assign({}, office.employeeJobs),
};

@ -7762,6 +7762,8 @@ export interface Office {
avgHap: number;
/** Average morale of the employees */
avgMor: number;
/** Total experience of all employees */
totalExperience: number;
/** Production of the employees */
employeeProd: Record<CorpEmployeePosition, number>;
/** Positions of the employees */