FAForever / fa

Lua code for FAF
221 stars 228 forks source link

Rework the brain components #6267

Closed Garanas closed 1 week ago

Garanas commented 1 week ago

The brain components are now in separate files. This allows you to hook the component before it is being applied to the standard brain class.

Testing done on the proposed changes

Start a scenario and observe that all the functionality (energy management, jammers, hqs, etc) are still functional.

Checklist

Garanas commented 1 week ago

The internal HQs field of the brain was not referenced by any of the existing mods and is therefore safe to rename.

Garanas commented 1 week ago

I won't touch the statistics module because of: https://github.com/FAForever/fa/pull/6129 And the same reasoning applies to the energy management module because of: https://github.com/FAForever/fa/pull/5822