add get_front_face() get_back_face() get_cards_from_link()

This commit is contained in:
GenevensiS
2025-12-06 21:39:12 +01:00
parent 71e395aff6
commit ffbe3daf39
6 changed files with 176 additions and 18 deletions
+13
View File
@@ -0,0 +1,13 @@
Function: get_cards_from_link
--Usage--
> get_cards_from_link(card: card, input: "link type")
Inspects a given [[type:card]]'s links to find those of the given type, and returns an array containing the linked cards.
Returns an empty array if no link of the given type, or no card was found.
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] The type of link we want to find.
| @card@ [[type:card]] The card whose links we'll inspect.
| @set@ [[type:set]] The set in which to look. This can be omited since 'set' is a predefined variable.