Skip to content

pay beta ​

Function of @v12-engine/engine

ts
export declare function pay(purse: Purse, cost: Cost | undefined): void;

Takes a cost out of a purse, per resource; a purse may go below zero, so check shortOf first