Assorted patches#5797
Conversation
sprunk
left a comment
There was a problem hiding this comment.
Changes in the 3 smaller files look good, some nits around smart nanos though.
| local GetSelectedUnits = Spring.GetSelectedUnits | ||
| local GetUnitTeam = Spring.GetUnitTeam | ||
| local GetTeamResources = Spring.GetTeamResources | ||
| local spGetFeaturesInCylinder = Spring.GetFeaturesInCylinder |
There was a problem hiding this comment.
The project-wide convention is spFoo = Spring.Foo, but the existing lines are just Foo = Spring.Foo so now there's inconsistent style. If we're linting the file perhaps bring the others up to the spFoo standard.
|
What do you say I remove changes to unit_smart_nanos and just push the 3 tiny changes? my linter pointed to this line and said "global variable" and indeed "bestUnit" is global in this scope. It gets defined in local scopes down the function in 2 separate if statements. |
|
If you'd like to do more with smart nanos then a standalone PR for the 3 tiny changes to get them out of the way sounds ok. But could also remove the |
LuaUI/Widgets/gui_reclaiminfo.lua
effects/roach.lua
lups/lups.lua
LuaUI/Widgets/unit_smart_nanos.lua