Post edit history
Game mode Upkeep
Before | After | ||
---|---|---|---|
1 | local invalidUDNames = { | 1 | . |
2 | ["terraunit"] = true, | ||
3 | ["slicer"] = true | ||
4 | } | ||
5 | \n | ||
6 | for name, ud in pairs(UnitDefs) do | ||
7 | if not invalidUDNames[name] then | ||
8 | if ud.metalcost < 0 and not ud.metalMake and ud.speed < 0 then | ||
9 | ud.metalMake = -(ud.metalcost * 0.01) | ||
10 | end | ||
11 | end | ||
12 | end |