Module:Builder/Data/TechGroups

--**************************************************** --** Used in the Buildings table to group techs    ** --** under 1 building instead of seperate lines. ** --**                                               ** --**  Doesn't really have use for much else         ** --****************************************************

local h = mw.loadData('Module:Builder/Data/Header') -- Element types local t = h.t -- research types local rt = h.rt -- local stat types --local st = h.st -- local strategic resourse types local sr = h.sr -- local tip types --local tip = h.tip -- local tipdefaults --local tipDefaults = h.tipDefaults

techGroups = { ['Orbital Station'] = { group = 'Orbital Station', members = { 'Star Base', 'Battle Station', 'Star Fortress'}, rt = rt.c, rl = '2/4/8', t = t.p, cc = 4000, mt = 5, notes = { 'Can build ships larger than Destroyers', 'Can refit ships', '+3/4/5 points', '+1/2/3 system sensor range', '+0/20/40% attack for friendly defending ships', '+0/0/20% defense for friendly defending ships', 'Can be fitted with ' }},           ['Planetary Shield'] = { group = 'Planetary Shield', rt = rt.d, rl = '2/4/6', t = t.p, cc = 1200, mt = 5, members = { 'Planetary Defense Shield', 'Planetary Deflector Shield', 'Planetary Barrier Shield'}, notes = { '20/35/50% chance to deflect bombs', '-/-/No mass destruction bombings', '-/-/Protects vs meteor showers and solar flares'}}, ['Garrison'] = { group = 'Garrison', rt = rt.d, rl = '2/4/6', t = t.p, cc = 900, mt = 5, members = { 'Marine Garrison', 'Imperial Garrison', 'Planetary Garrison'}, notes = { 'Allows construction of ', '+5/10/15 Ground Combat Strength', '+0/50/100% ',            '-/-/Invasion requires higher GC strength than defender', '+10/+20/-20% in Dictatorship/Feudal/Utopia'}}, ['Airspace Facility'] = { group = 'Airspace Facility', rt = rt.d, rl = '2/3/5', t = t.p, cc = 900, mt = 5, members = { 'Airspace Support Facility', 'Airspace Combat Facility', 'Airspace Defense Nexus'}, notes = { '+3/5/10 ground combat strength', '+10/25/50% raid defense', '+25/35/75% defense to ships in orbit', '+0/25/50% attack to ships in orbit', '-/-/Raid requires 2 instead of 1'}} }

for _, g in pairs(techGroups) do   g.key = g.group local t = {} table.insert(t, g.group) table.insert(t, '' ) for _, v in ipairs(g.members) do        table.insert(t, '' .. v .. '') end table.insert(t, '') g.headerColumn = table.concat(t) end

return techGroups