yasuki_core.engine.rules.decisions.ChooseInvestAmount#
- class ChooseInvestAmount(seat, candidates, source_card_id)[source]#
The seat must choose how much to Invest while recruiting a variable-Invest holding. The candidates are the affordable amounts rendered as strings; the chosen amount is added to the recruit payment and drives the Invest effect. Cancellable — nothing is committed until the payment that follows.
- Attributes:
- source_card_id
str The holding being recruited with Invest.
- source_card_id
Methods
ChooseInvestAmount.__init__(seat, ...)ChooseInvestAmount.accepts(response)Return whether
responseis a structurally well-formed answer to this request — the right shape, drawn fromcandidates.Attributes
source_card_idcancellableWhether the seat may back out of this decision, undoing the action that raised it.