add add_card_to_set script function

make styling_data initializable in new_card script function
This commit is contained in:
GenevensiS
2025-07-19 18:18:33 +02:00
parent 45d48d67b1
commit d85f5a4927
6 changed files with 139 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
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([]))