mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-25 00:27:24 +01:00
Update src/modules/military-generator.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
781d99ae10
commit
1608a21264
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ class MilitaryModule {
|
|||
s: State,
|
||||
): MilitaryRegiment[] => {
|
||||
if (!nodes.length) return [];
|
||||
|
||||
nodes.sort((a, b) => a.a - b.a); // form regiments starting from cells with fewest troops
|
||||
nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops
|
||||
const tree = quadtree(
|
||||
nodes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue