yasuki_core.game_pieces.factory.build_token_card#

build_token_card(record)[source]#

Build one live, owner-less card from a record, for the spawn to copy onto the battlefield.

The record has the get_card_by_id shape (the image as an image_path column, not a prints list), as returned by database.get_creates_for_cards and get_card_by_id.

Parameters:
recorddict

The card’s full database record.

Returns:
cardL5RCard

The built card, owner-less and keyed by its own card id.