Employee salary no longer increase

This commit is contained in:
Olivier Gagnon 2021-10-31 16:01:23 -04:00
parent 9b0726ca9a
commit 90090f8273
4 changed files with 12 additions and 19 deletions

18
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -61,13 +61,6 @@ export class Employee {
det = gain * Math.random(); det = gain * Math.random();
this.exp += gain; this.exp += gain;
// Employee salaries slowly go up over time
this.cyclesUntilRaise -= marketCycles;
if (this.cyclesUntilRaise <= 0) {
this.sal += CorporationConstants.EmployeeRaiseAmount;
this.cyclesUntilRaise += CorporationConstants.CyclesPerEmployeeRaise;
}
//Training //Training
const trainingEff = gain * Math.random(); const trainingEff = gain * Math.random();
if (this.pos === EmployeePositions.Training) { if (this.pos === EmployeePositions.Training) {