Fix #3194: include all division employees in small town achievement calc

This commit is contained in:
Brian Leip 2022-03-19 15:28:37 -07:00
parent bb433d4629
commit 07a3f3b753

@ -458,10 +458,12 @@ export const achievements: IMap<Achievement> = {
Condition: (): boolean => {
if (Player.corporation === null) return false;
for (const d of Player.corporation.divisions) {
let employeeCount = 0;
for (const o of Object.values(d.offices)) {
if (o === 0) continue;
if (o.employees.length >= 3000) return true;
employeeCount += o.employees.length;
}
if (employeeCount >= 3000) return true;
}
return false;
},