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 0<ud.metalcost and not ud.metalMake and 0<ud.speed then | ||
9 | ud.metalMake = -(ud.metalcost * 0.01) | ||
10 | end | ||
11 | end | ||
12 | end |