/tg/ Station 13 - Modules - TypesVar Details - Proc Details

cards

Vars

can_play_52_card_pickupDo all the cards drop to the floor when thrown at a person
card_atomsList of card atoms for a hand or deck
initial_cardsThe initial cards in the deck. Each entry is either:

Procs

count_cardsReturns the number of cards in the deck. Avoids creating any cards if it is unnecessary.
drawDraws a card from the deck or hand of cards.
fetch_card_atomsReturns the cards in this deck. Lazily generates the cards if they haven't already been made.
insertThis is used to insert a list of cards into a deck or cardhand
throw_impactThis is how we play 52 card pickup

Var Details

can_play_52_card_pickup

Do all the cards drop to the floor when thrown at a person

card_atoms

List of card atoms for a hand or deck

initial_cards

The initial cards in the deck. Each entry is either:

Proc Details

count_cards

Returns the number of cards in the deck. Avoids creating any cards if it is unnecessary.

draw

Draws a card from the deck or hand of cards.

Draws the top card unless a card arg is supplied then it picks that specific card and returns it (the card arg is used by the radial menu for cardhands to select specific cards out of the cardhand) Arguments:

fetch_card_atoms

Returns the cards in this deck. Lazily generates the cards if they haven't already been made.

insert

This is used to insert a list of cards into a deck or cardhand

All cards that are inserted have their angle and pixel offsets reset to zero however their flip state does not change unless it's being inserted into a deck which is always facedown (see the deck/insert proc)

Arguments:

throw_impact

This is how we play 52 card pickup