grantXp beta
Function of @v12-engine/engine
ts
export declare function grantXp(world: World, entity: Entity, amount: number, from?: Entity): void;Gives a hero experience: from what was killed, when that is where it comes from. The beforeXp hook has its say