AI support for Power Toggle

Registered by AlexB

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]TogglePowerDelay= (integer - frames, defaults to 45)
Defines the delay between toggle power checks. Values less than 0 deactivate this logic.

TogglePower has to be enabled for this to work.

See also: https://bugs.launchpad.net/ares/+bug/895835

Blueprint information

Status:
Complete
Approver:
AlexB
Priority:
Medium
Drafter:
AlexB
Direction:
Approved
Assignee:
AlexB
Definition:
Approved
Series goal:
Accepted for 0.8
Implementation:
Implemented
Milestone target:
milestone icon 0.8
Started by
AlexB
Completed by
AlexB

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.