CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)

This commit is contained in:
Snarling
2023-05-05 03:55:59 -04:00
committed by GitHub
parent d25254caf1
commit ebae35b1fb
202 changed files with 905 additions and 1110 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export class PlayerObject extends Person implements IPlayer {
scriptProdSinceLastAug = 0;
sleeves: Sleeve[] = [];
sleevesFromCovenant = 0;
sourceFiles: JSONMap<number, number> = new JSONMap();
sourceFiles = new JSONMap<number, number>();
exploits: Exploit[] = [];
achievements: PlayerAchievement[] = [];
terminalCommandHistory: string[] = [];
@@ -284,12 +284,10 @@ export function applyForJob(this: PlayerObject, entryPosType: CompanyPosition, s
return false;
}
while (true) {
const nextPos = getNextCompanyPositionHelper(pos);
if (nextPos == null) break;
if (company.hasPosition(nextPos) && this.isQualified(company, nextPos)) {
pos = nextPos;
} else break;
let nextPos = getNextCompanyPositionHelper(pos);
while (nextPos && company.hasPosition(nextPos) && this.isQualified(company, nextPos)) {
pos = nextPos;
nextPos = getNextCompanyPositionHelper(pos);
}
//Check if player already has the assigned job