yasuki_core.database.get_creates_for_cards#

get_creates_for_cards(card_ids)[source]#

Resolve the tokens the given creator cards can create, plus each token’s full record.

Reads the card_creates relation for every id in card_ids and fetches each distinct token card with the same shape get_card_by_id returns, so the card factory can build a live token from it. Used once at deck load to populate TableState.creatable_tokens. card_creates holds only spawnable cards — counter/marker provenance lives in card_grants_counter — so no marker filtering is needed here.

Parameters:
card_idslist of str

Creator card ids to look up creations for.

Returns:
createsdict mapping str to list of str

Each creator card id to the token card ids it creates.

tokensdict mapping str to dict

Each created token card id to its full card record.