mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-04 14:37:24 +02: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,
|
s: State,
|
||||||
): MilitaryRegiment[] => {
|
): MilitaryRegiment[] => {
|
||||||
if (!nodes.length) return [];
|
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
|
nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops
|
||||||
const tree = quadtree(
|
const tree = quadtree(
|
||||||
nodes,
|
nodes,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue