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_idstr

The holding being recruited with Invest.

Methods

ChooseInvestAmount.__init__(seat, ...)

ChooseInvestAmount.accepts(response)

Return whether response is a structurally well-formed answer to this request — the right shape, drawn from candidates.

Attributes

source_card_id

cancellable

Whether the seat may back out of this decision, undoing the action that raised it.