Labs for minor countries
Posted: Sat Aug 01, 2015 6:45 pm
Hi, someone knows how to allow artillery or naval labs for countries that haven't as Spain or Sweden?
Code: Select all
for a, nation in pairs(data.factions) do
if nation.research.ground then
nation.research = { ground = 1, artillery = 1, naval = 1, air = 1, armour = 1 }
end
end
Code: Select all
for a, unit in pairs(data.units) do
if table.getn(unit.factions) > 1 then
unit.factions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22)
end
end