AI support for Power Toggle
This makes the AI a bit smarter when it comes to coping with power outages because of missing power plants.
Each building is evaluated, and base defenses are tried to be held online if possible. This is done by multiplying the negative Power= by 2 for buildings providing super weapons, and by 1.5 by non-base-defenses. Higher number increases the chance of the building being turned off, lower numbers mean buildings are turned back on earlier.
Players being drained or suffering from a power blackout triggered by a spy or Force Shield are exempt, as well as any human players.
[IQ]TogglePower= (integer, defaults to -1)
Defines the IQ rating an AI player will toggle power of buildings in low power situations. Values less than 0 deactivate this logic.
[General]
Defines the delay between toggle power checks. Values less than 0 deactivate this logic.
TogglePower has to be enabled for this to work.