forked from Backbash/NuttyB-Raptors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtweakdefs7.lua
More file actions
35 lines (31 loc) · 1.01 KB
/
Copy pathtweakdefs7.lua
File metadata and controls
35 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--T3 Eco builtin v6
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
local unitDefs, cons =
UnitDefs or {},
{
'armack',
'armaca',
'armacv',
'corack',
'coraca',
'coracv',
'legack',
'legaca',
'legacv'
}
for _, factionMM in pairs({'armmmkrt3', 'cormmkrt3', 'legadveconvt3'}) do
table.mergeInPlace(unitDefs[factionMM], {footprintx = 6, footprintz = 6})
end
for _, builderName in pairs(cons) do
local faction, nBuildOptions = builderName:sub(1, 3), #unitDefs[builderName].buildoptions
unitDefs[builderName].buildoptions[nBuildOptions + 1] = faction .. 'afust3'
unitDefs[builderName].buildoptions[nBuildOptions + 2] = faction == 'leg' and 'legadveconvt3' or faction .. 'mmkrt3'
end
do
local builderName = 'legck'
local nBuildOptions = #unitDefs[builderName].buildoptions
unitDefs[builderName].buildoptions[nBuildOptions + 1] = 'legdtf'
end
for _, unitName in pairs({ 'coruwadves', 'legadvestore' }) do
table.mergeInPlace(unitDefs[unitName], { footprintx = 4, footprintz = 4 })
end