diff --git a/src/Corporation/OfficeSpace.ts b/src/Corporation/OfficeSpace.ts index ed429c1ae..36b0325c3 100644 --- a/src/Corporation/OfficeSpace.ts +++ b/src/Corporation/OfficeSpace.ts @@ -3,6 +3,7 @@ import { CorporationConstants } from "./data/Constants"; import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../utils/JSONReviver"; import { Industry } from "./Industry"; import { Corporation } from "./Corporation"; +import { getRandomInt } from "../utils/helpers/getRandomInt"; interface IParams { loc?: string; @@ -227,10 +228,16 @@ export class OfficeSpace { ++this.employeeJobs[position]; ++this.employeeNextJobs[position]; - this.totalExp += 75; - this.avgMor = (this.avgMor * this.totalEmployees + 75) / (this.totalEmployees + 1); - this.avgHap = (this.avgHap * this.totalEmployees + 75) / (this.totalEmployees + 1); - this.avgEne = (this.avgEne * this.totalEmployees + 75) / (this.totalEmployees + 1); + this.totalExp += getRandomInt(50, 100); + + this.avgMor = (this.avgMor * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + this.avgHap = (this.avgHap * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + this.avgEne = (this.avgEne * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + + this.avgInt = (this.avgInt * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + this.avgCha = (this.avgCha * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + this.avgCre = (this.avgCre * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); + this.avgEff = (this.avgEff * this.totalEmployees + getRandomInt(50, 100)) / (this.totalEmployees + 1); return true; }