if unit.owner == object.tGermany and civ.hasTech(object.tGermany, object.aAlignRomania) then
gen.justOnce("Align Romania",function ()
civ.ui.text("King Carol II of Romania abdicates the thrown, leaving the country in control of fascist Prime Minster Ion Antonescu. The new leader quickly signs the Tripartite Pact, allying Romania with Germany, Italy, and Japan. Romania and her critical oil resources will now contribute to the Reich's war effort.")
if object.cKishinev.owner == object.tNeutrals then object.cKishinev.owner = object.tGermany end
if object.cJassy.owner == object.tNeutrals then object.cJassy.owner = object.tGermany end
object.cConstanta.owner = object.tGermany
object.cGalati.owner = object.tGermany
object.cBrasou.owner = object.tGermany
object.cPloesti.owner = object.tGermany
object.cBucharest.owner = object.tGermany
object.cCluj.owner = object.tGermany
object.cTimisoara.owner = object.tGermany
for unit in civ.iterateUnits() do
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cKishinev.location.x and unit.location.y == object.cKishinev.location.y and unit.location.z == object.cKishinev.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cJassy.location.x and unit.location.y == object.cJassy.location.y and unit.location.z == object.cJassy.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cConstanta.location.x and unit.location.y == object.cConstanta.location.y and unit.location.z == object.cConstanta.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cGalati.location.x and unit.location.y == object.cGalati.location.y and unit.location.z == object.cGalati.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cBrasou.location.x and unit.location.y == object.cBrasou.location.y and unit.location.z == object.cBrasou.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cPloesti.location.x and unit.location.y == object.cPloesti.location.y and unit.location.z == object.cPloesti.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cBucharest.location.x and unit.location.y == object.cBucharest.location.y and unit.location.z == object.cBucharest.location.z then civ.deleteUnit(unit) end
if (unit.owner ~= object.tGermany and unit.owner ~= object.tUSSR) and unit.location.x == object.cTimisoara.location.x and unit.location.y == object.cTimisoara.location.y and unit.location.z == object.cTimisoara.location.z then civ.deleteUnit(unit) end
end
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{195,111,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{193,101,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{194,94,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{186,92,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{181,101,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{184,106,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{184,110,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uRomanianInfantry, object.tGermany, {{164,104,0}}, {count=3, randomize=false, veteran=false})
civlua.createUnit(object.uFuelRefinery, object.tGermany, {{183,105,2}}, {count=1, randomize=false, veteran=false})
for unit in civ.iterateUnits() do
if unit.location.x == 183 and unit.location.y == 105 and unit.location.z == 2 then
unit.homeCity = object.cPloesti
end
end
end)
end