grantVeterancy beta
Function of @v12-engine/engine
ts
export declare function grantVeterancy(world: World, entity: Entity, xp: number, ranks?: readonly VeterancyRank[]): number;Gives a unit experience, as a kill does: its rank goes up where it reaches the next ones' thresholds, its stats with it, and rankedUp is told for each. Gives back the rank it is at. For a game's own rules (a unit that trains at a camp), and what veterancyPack does on a kill