presetMarket beta
Function of @v12-engine/engine
ts
export declare function presetMarket(options: PresetMarketOptions): AbilityDef[];A marketplace's abilities: one for each trade (MarketRate), cast at once (target: 'none'), with an exchange effect that trades the caster's owner's resources at its rate. A building of the game's lists their ids in its abilities (abilities: market.map((ability) => ability.id)), the abilities go in the rules' abilities. With less than the amount to sell, the player is told and nothing goes. The computer player does not cast them in a fight (their ai says not now); its brain's spells may