DataRules beta
Interface of @v12-engine/engine
ts
export interface DataRulesThe rules a data.json may say (campaign plan RC7), each over the game's: the supply's and the heroes' numbers, the resources and the upkeep's tiers whole (in place of Rules.resources, upkeep)
Members
heroes
ts
heroes?: {
maxHeroes?: number;
maxHeroLevel?: number;
xpRange?: number;
assistTime?: number;
buybackCooldown?: number;
};The hero rules: maxHeroes a player may have, maxHeroLevel a hero can reach, xpRange the distance within which units share experience, assistTime the seconds within which harm or help makes an assist (0 for none), and buybackCooldown the seconds a hero bought back waits to be again
resources
ts
resources?: ResourceDef[];The resource kinds of the game whole, in place of Rules.resources
supply
ts
supply?: {
max?: number;
pools?: Record<string, {
name: string;
max: number;
}>;
};The supply numbers: max is the most supply a player can have, pools names the extra supply pools by id with their own max
upkeep
ts
upkeep?: UpkeepTier[];The upkeep tiers whole, in place of Rules.upkeep