22 lines
857 B
TypeScript
22 lines
857 B
TypeScript
module TK.SpaceTac {
|
|
export type AISettings = {
|
|
producer: AIPlanProducer
|
|
scoring: AIPlanScoring
|
|
}
|
|
|
|
/**
|
|
* Fixed settings of AI
|
|
*/
|
|
export const AISettingsStock: { [name: string]: (battle: Battle, player: Player, ...args: any[]) => AISettings } = {
|
|
default: (battle: Battle, player: Player) => ({
|
|
producer: AIPlanProducers.random(battle, player),
|
|
scoring: AIScoringHelpers.sum(
|
|
AIScoringHelpers.scaled(AIScoringHelpers.overheat, 3),
|
|
AIScoringHelpers.scaled(AIScoringHelpers.healthEnemies, 5),
|
|
AIScoringHelpers.scaled(AIScoringHelpers.healthAllies, 20),
|
|
AIScoringHelpers.scaled(AIScoringHelpers.activeEffects, 3),
|
|
AIScoringHelpers.scaled(AIScoringHelpers.remainingPower, 2),
|
|
)
|
|
})
|
|
}
|
|
} |