Added unit country selection

This commit is contained in:
Pax1601
2023-08-27 15:59:50 +02:00
parent eb80c39b98
commit 9d7e61556d
20 changed files with 858 additions and 28826 deletions

View File

@@ -1,6 +1,6 @@
local version = "v0.4.2-alpha"
local debug = false
local debug = true
Olympus.OlympusDLL = nil
Olympus.DLLsloaded = false
@@ -404,7 +404,13 @@ function Olympus.spawnUnits(spawnTable)
Olympus.debug(Olympus.serializeTable(unitTable), 5)
local countryID = Olympus.getCountryIDByCoalition(spawnTable.coalition)
local countryID = 0
if spawnTable.country == nil or spawnTable.country == "" then
countryID = Olympus.getCountryIDByCoalition(spawnTable.coalition)
else
countryID = country.id[spawnTable.country]
end
local vars =
{
units = unitTable,