From 7a2bf64fce1d48de52360ab39f62816969e42a7a Mon Sep 17 00:00:00 2001 From: hydroflame <79246165+hydroflame@users.noreply.github.com> Date: Sun, 20 Mar 2022 14:16:03 -0400 Subject: [PATCH] Revert "Fix #3194: include all division employees in small town achievement calc" --- src/Achievements/Achievements.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Achievements/Achievements.ts b/src/Achievements/Achievements.ts index e81891c73..66057f147 100644 --- a/src/Achievements/Achievements.ts +++ b/src/Achievements/Achievements.ts @@ -460,12 +460,10 @@ 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; - employeeCount += o.employees.length; + if (o.employees.length >= 3000) return true; } - if (employeeCount >= 3000) return true; } return false; },