Space Station 13 - Modules - TypesVar Details - Proc Details

deck

Vars

card_attack_verbInherited card verbs
card_forceInherited card force
card_hitsoundInherited card hit sound
card_resistance_flagsInherited card resistance
card_styleStyling for the cards, if they have multiple sets of sprites
card_throw_rangeInherited card throw range
card_throw_speedInherited card throw speed
card_throwforceInherited card throw force
deck_sizeHow many copies of the base deck (built in build_deck()) should be added?
deck_styleStyling for the deck, it they has multiple sets of sprites
deck_totalThe number of cards in a full deck. Set on init after all cards are created/added.
last_player_actionThe action that the last player made. Should be in the form of "played a card", "drew a card."
last_player_nameThe name of the last player to interact with this deck.
main_deck_idID used to track the decks and cardhands that can be combined into one another.
shuffle_cooldownHow often the deck can be shuffled.
simple_deckFor decks without a full set of sprites

Procs

build_deckStub, override this to define how a base deck should be filled and built.
build_decksFill the deck with all the specified cards. Uses deck_size to determine how many times to call build_deck()
draw_cardDraw a card from this deck. Arguments:
return_cardsReturn a number of cards to a deck.
return_hand_clickReturn a single card to the deck.

Var Details

card_attack_verb

Inherited card verbs

card_force

Inherited card force

card_hitsound

Inherited card hit sound

card_resistance_flags

Inherited card resistance

card_style

Styling for the cards, if they have multiple sets of sprites

card_throw_range

Inherited card throw range

card_throw_speed

Inherited card throw speed

card_throwforce

Inherited card throw force

deck_size

How many copies of the base deck (built in build_deck()) should be added?

deck_style

Styling for the deck, it they has multiple sets of sprites

deck_total

The number of cards in a full deck. Set on init after all cards are created/added.

last_player_action

The action that the last player made. Should be in the form of "played a card", "drew a card."

last_player_name

The name of the last player to interact with this deck.

main_deck_id

ID used to track the decks and cardhands that can be combined into one another.

shuffle_cooldown

How often the deck can be shuffled.

simple_deck

For decks without a full set of sprites

Proc Details

build_deck

Stub, override this to define how a base deck should be filled and built.

build_decks

Fill the deck with all the specified cards. Uses deck_size to determine how many times to call build_deck()

draw_card

Draw a card from this deck. Arguments:

return_cards

Return a number of cards to a deck.

Arguments:

return_hand_click

Return a single card to the deck.