From 07a3f3b7532fbcb23792f5eed0fcd54459b03daf Mon Sep 17 00:00:00 2001 From: Brian Leip Date: Sat, 19 Mar 2022 15:28:37 -0700 Subject: [PATCH] Fix #3194: include all division employees in small town achievement calc --- src/Achievements/Achievements.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Achievements/Achievements.ts b/src/Achievements/Achievements.ts index 09827c8cd..2cff55deb 100644 --- a/src/Achievements/Achievements.ts +++ b/src/Achievements/Achievements.ts @@ -458,10 +458,12 @@ export const achievements: IMap = { 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; },