Skip to content

CampSettings beta ​

Interface of @v12-engine/engine

ts
export interface CampSettings

Creeps' camps' rules (RuleSettings.camps)

Members ​

chaseTime ​

ts
chaseTime: number;

Seconds a creep chases what has neither hit it nor been hit by it before it lets it go for the next of the camp's list (Camp.aggro): a kiting archer is not followed round the camp for ever. 5 by default. A camp's own is Camp.chaseTime

helpAtOnce ​

ts
helpAtOnce: boolean;

Whether every creep of a camp answers a hit on one of them at once, as it lands, rather than at its next look round (every fourth tick). True by default. A camp's own is Camp.helpAtOnce

leash ​

ts
leash: number;

How far from the camp's centre its creeps fight, in cells: what goes past it is let go of, and a creep led past it turns back. 14 by default. A camp's own is Camp.leash (spawnCamp's leash)

resetAfter ​

ts
resetAfter: number;

Seconds without a blow (none of the camp's creeps hitting or hit) before the camp gives up the fight and goes home: until then its creeps wait where they stand for what comes next. 6 by default. A camp's own is Camp.resetAfter; resetCamp sends one home now

respawn ​

ts
respawn?: number;

Seconds after a camp is cleared that it comes back, for every camp (see Camp.respawn). Never when left out

sleep ​

ts
sleep: boolean;

Whether creeps sleep at home at night, until attacked