# Drawstep engine · Costs · `genericAmount` > Generic amount — Computed generic mana added to mana, fixed when a resolution-time cost is paid: "unless you pay {1} for each card in your hand" (CR 107.3, 608.2h). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/costs#genericAmount ## Where it goes One part of a `cost` object (an activated ability's cost, `mayPay`, `unlessPays`, an `additionalCost`): `{ "genericAmount": … }`; parts combine freely. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `genericAmount` | `ValueDef` | no | Computed generic mana added to mana, fixed when a resolution-time cost is paid: "unless you pay {1} for each card in your hand" (CR 107.3, 608.2h) | ## Stock examples - **Tomakul Phoenix** — “At the beginning of combat on your turn, you may pay {X}{R}, where X is Tomakul Phoenix's power. If you do, return it from your graveyard to the battlefield.” ```json {"mana":"{R}","genericAmount":{"kind":"sourcePower"}} ``` - **Dream Tides** — “At the beginning of each player's upkeep, that player may choose any number of tapped nongreen creatures they control and pay {2} for each creature chosen this way. If the player does, untap those creatures.” ```json {"genericAmount":{"kind":"math","op":"*","a":2,"b":{"kind":"affectedCount","noun":"creature"}}} ``` ## Related - [Costs](https://drawstep.xyz/wiki/mtg/costs.md) — the whole topic - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive