mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
d85f5a4927
make styling_data initializable in new_card script function
22 lines
523 B
Plaintext
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([]))
|