Skip to content

giveBack beta ​

Function of @v12-engine/engine

ts
export declare function giveBack(world: World, player: PlayerId, cost: Cost | undefined, part: number, on: SpentOn, id?: string): void;

Gives a player back what something cost, or a part of it (refund), and says so (resourcesSpent with refund): what the score takes off what was spent