give beta
Function of @v12-engine/engine
ts
export declare function give(world: World, from: PlayerId, to: PlayerId, resource: string, amount: number): void;Gives amount of a resource from one player to an ally (traded), both told. Nothing to who is not an ally, more than the giver has, or a resource the game does not have; and as the beforeTrade hook says: how much arrives, or not