CODEBASE: Fix lint errors 1 (#1732)

This commit is contained in:
catloversg
2024-11-04 13:35:14 +07:00
committed by GitHub
parent f7ee3a340f
commit f6502dd490
55 changed files with 252 additions and 255 deletions
@@ -36,9 +36,9 @@ export function getGangFaction(this: PlayerObject): Faction {
return fac;
}
export function getGangName(this: PlayerObject): string {
export function getGangName(this: PlayerObject): FactionName | null {
const gang = this.gang;
return gang ? gang.facName : "";
return gang ? gang.facName : null;
}
export function hasGangWith(this: PlayerObject, facName: FactionName): boolean {
@@ -302,7 +302,7 @@ export function applyForJob(
}
if (!company.hasPosition(pos)) {
console.error(`Company ${company.name} does not have position ${pos}. Player.applyToCompany() failed.`);
console.error(`Company ${company.name} does not have position ${pos.name}. Player.applyToCompany() failed.`);
return null;
}