MeleeArmyOptions beta
Interface of @v12-engine/engine/ai
export interface MeleeArmyOptionsHow the melee player's army goes about its own waves and the goals beside them (AiSettings.army over the melee brain's army(options)). Data: a save keeps the seat's
Members
attackEvery
attackEvery?: number;Seconds between two waves: 45 when left out
counter
counter?: boolean;Whether a wave of theirs that died at its gate is answered at once with what is ready (half a wave at the least), their base being empty of it: yes when left out. counterAfter is how many of their fighters must have fallen near its bases in the last twenty seconds (3 when left out)
counterAfter
counterAfter?: number;How many of their fighters must have fallen near its bases in the last twenty seconds for the counter: 3 when left out
creep
creep?: false | {
every?: number;
from?: number;
reach?: number;
party?: number;
};Creeping (the creep goal): seconds between camps (every, 40), seconds into the game before the first (from, 30), how far from home a camp may be (reach, 70), the fewest in a party (party, 3). false for none
expand
expand?: false | {
guards?: number;
spare?: number;
};Guards at a base past home that has no tower yet (the expand goal): how many (guards, 2), and how many fighters past a wave must stand idle for any to go (spare, 0). false for none
firstAttack
firstAttack?: number;Seconds before its first wave: 150 when left out
goOdds
goOdds?: number | false;The odds (Strength.odds) of what it has ready against their army as last seen (the last minute) under which a wave whose time has come waits and trains on rather than go: 0.4 when left out; false never waits
harass
harass?: false | {
size?: number;
odds?: number;
every?: number;
retreatAt?: number;
};Harassing their main before the first wave (the harass goal): the party (size, 3: the hero and the fastest), the odds it needs at their base (odds, 0.6), seconds between (every, 90), the odds it falls back at (retreatAt, 0.5). false for none
pressOdds
pressOdds?: number;The odds against their army as last seen a wave needs to go on: 0.5 when left out
pressOn
pressOn?: boolean;Whether a wave that razed what it went for goes on to the next of their buildings it knows, while it is strong enough: yes when left out
raid
raid?: false | {
size?: number;
odds?: number;
every?: number;
armyAwayFor?: number;
workersSeenFor?: number;
retreatAt?: number;
};Raids on their workers where their army is not (the raid goal): how many go (size, 3, the fastest), the odds against what is remembered at the base they need (odds, 0.6), seconds between raids (every, 60), seconds their army must not have been seen near the base (armyAwayFor, 45), how long ago their workers were seen at the most (workersSeenFor, 120), the odds the raiders fall back at (retreatAt, 0.5). false for no raids
reinforce
reinforce?: boolean;Whether idle fighters at home join a wave that is out, making up what it lost: yes when left out
strike
strike?: false | {
awayFor?: number;
odds?: number;
};A strike while their army is away (FJ1): every sighting of their army within awayFor seconds (60) stands far from what a wave would go for (their base, out raiding or creeping or at a base of mine), and what is ready (half a wave at the least) would hold against what is remembered to reach it at these odds (odds, 0.6): the wave goes before its time. false for none
surrender
surrender?: false | MeleeSurrenderOptions;When it gives up (the melee.surrender module, MeleeSurrenderOptions): once it has no hall, no worker and no army that could win the game back, for half a minute, when left out; a condition of the game's own (when), and how long it holds first (after). false plays to the last
target
target?: 'nearest' | 'weakest';Where a wave of its own goes among their buildings it knows of: the nearest, or the weakest (the one the least of their strength is remembered to reach: an expansion before a main with towers; the nearest among those alike). weakest when left out
waitAtMost
waitAtMost?: number;Seconds a wave waits past its time at the most, outmatched or short of its size: then it goes with what it has, half the wave at the least, where that would hold against what is remembered to reach the target. Twice attackEvery when left out. A wave that could never reach its size (the supply capped) still comes
waveGrowth
waveGrowth?: number;Units more in each wave than the one before: 2 when left out
waveMax
waveMax?: number;The most units a wave of its own asks for: 24 when left out
waveSize
waveSize?: number;Units in its first wave, each after bringing two more: 6 when left out