Changelog entry
Worker assignment mechanics (P6.5B)
2026-03-27
- Added `GET/POST/DELETE /api/nations/[id]/companies/[companyId]/workers` for server-authoritative worker assignment management.
- Workers can now be assigned cross-nation within the same world (not restricted to company owner nation).
- Added a config-driven 3-tick reassignment cooldown (`COMPANY_WORKER_REASSIGN_COOLDOWN_TICKS`) to block rapid worker shuffling.
- Added worker expulsion on non-war-game war declaration: workers assigned between the attacker and defender nations are removed automatically.
- Worker capacity is tracked server-side using `floor(population × COMPANY_WORKER_CAPACITY_POPULATION_RATIO)`.