Files
GenevensiS d85f5a4927 add add_card_to_set script function
make styling_data initializable in new_card script function
2025-07-19 18:18:33 +02:00

22 lines
523 B
Plaintext

Function: add_card_to_set
--Usage--
> add_card_to_set(card, set: set)
Add a [[type:card]] to a [[type:set]].
If the input is a collection, all cards contained inside will be added.
Returns true if a card was actually added to the set.
This is for use in the CLI.
--Parameters--
! Parameter Type Description
| @input@ [[type:card]] The card you want to add.
| @set@ [[type:set]] The set the card must belong to.
--Examples--
> # Create a new card and add it to the current set:
> add_card_to_set(new_card([]))