Fixed IADS creation and added livery/skill selection for units

This commit is contained in:
Davide Passoni
2024-11-14 17:23:16 +01:00
parent fa215142ad
commit c8e1f76b38
11 changed files with 278 additions and 200 deletions

View File

@@ -44,7 +44,7 @@ export class CoalitionPolygon extends Polygon {
});
this.on("remove", () => {
this.#label.removeFrom(this._map);
this.#label?.removeFrom(this._map);
});
}

View File

@@ -1048,7 +1048,7 @@ export class Map extends L.Map {
.getUnitsManager()
.spawnUnits(
this.#spawnRequestTable.category,
[this.#spawnRequestTable.unit],
Array(this.#spawnRequestTable.amount).fill(this.#spawnRequestTable.unit),
this.#spawnRequestTable.coalition,
false,
undefined,