mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-27 01:27:23 +01:00
Update src/modules/military-generator.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
47c52c5d28
commit
b9c4472aaf
1 changed files with 0 additions and 1 deletions
|
|
@ -406,7 +406,6 @@ class MilitaryModule {
|
||||||
): 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 starting from cells with fewest troops
|
||||||
nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops
|
|
||||||
const tree = quadtree(
|
const tree = quadtree(
|
||||||
nodes,
|
nodes,
|
||||||
(d) => d.x,
|
(d) => d.x,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue