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, avgEne: office.avgEne,
avgHap: office.avgHap, avgHap: office.avgHap,
avgMor: office.avgMor, avgMor: office.avgMor,
totalExperience: office.totalExp,
employeeProd: Object.assign({}, office.employeeProd), employeeProd: Object.assign({}, office.employeeProd),
employeeJobs: Object.assign({}, office.employeeJobs), employeeJobs: Object.assign({}, office.employeeJobs),
}; };

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