cards
Vars | |
can_play_52_card_pickup | Do all the cards drop to the floor when thrown at a person |
---|---|
cards | List of cards for a hand or deck |
Procs | |
draw | Draws a card from the deck or hand of cards. |
insert | This is used to insert a list of cards into a deck or cardhand |
throw_impact | This 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
cards
List of cards for a hand or deck
Proc Details
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:
- mob/living/user - The user drawing the card.
- obj/item/toy/singlecard/card (optional) - The card drawn from the hand
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:
- card_item - Either a singlecard or cardhand that gets inserted into the src
throw_impact
This is how we play 52 card pickup