Skip to content

heroesPack ​

Function of @v12-engine/engine

ts
export declare function heroesPack(rules?: Partial<HeroSettings>): HeroesPack;

The heroes pack: what makes a game a classic hero RTS, opted into (Rules.packs: [heroesPack()]). Heroes, with their experience, levels, points and abilities to learn, brought back at an altar (revive) or bought back (buyback), their kills shared with those who assisted, their streaks paid for when they end (HeroSettings); creeps' camps that guard their ground, sleep at night and come back (Camp.respawn); shops that sell (buy, sell) and places that hire (hire). rules change its numbers (HeroSettings: how many heroes, the experience a level takes), the classic RTS numbers for those left out. A game without it pays nothing for any of it: no hero is made of a hero's type, no command of these is taken, no camp is looked at