From 3bfae2f4fefd548e122ceb3380f0adc4fac91fcf Mon Sep 17 00:00:00 2001 From: N Date: Sun, 31 May 2026 09:32:06 -0300 Subject: [PATCH] update select_card docs --- SMODS.Center/SMODS.Booster.md | 2 +- SMODS.Center/SMODS.Consumable.md | 2 +- SMODS.ObjectType.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SMODS.Center/SMODS.Booster.md b/SMODS.Center/SMODS.Booster.md index 848b770..bc6ff76 100644 --- a/SMODS.Center/SMODS.Booster.md +++ b/SMODS.Center/SMODS.Booster.md @@ -26,7 +26,7 @@ - `select_card`: - Set to string of destination card area, ex. `'consumeables'`, to save cards from the pack instead of using them. - Set to table of form `{Set = 'area'}` to change behaviour according to a card's `Set` (e.g. `{Tarot = 'consumeables'}` to only save `Tarot` cards, relevant if you have multiple types of consumables in a booster). - - Set to a function `select_card(self, card, pack) -> string?` to control if and where `card` should be saved for any `card, pack` combination. + - Set to a function `select_card(self, card, pack) -> string?, boolean?` to control if and where `card` should be saved for any `card, pack` combination. Returning `true` as the second value allows the player to select whether to save or use the card. - `disable_shine`: *(added in 1531zeebee)* Disables the default 'shine' shader. ## API methods diff --git a/SMODS.Center/SMODS.Consumable.md b/SMODS.Center/SMODS.Consumable.md index 3f2e7a4..d89a034 100644 --- a/SMODS.Center/SMODS.Consumable.md +++ b/SMODS.Center/SMODS.Consumable.md @@ -22,7 +22,7 @@ - `can_repeat_soul`, allows repeats of this card as if Showman were present - `select_card`: - Set to string of destination card area, ex. `'consumeables'`, to save this card from Booster packs instead of using it. - - Set to a function `select_card(card, pack) -> string?` to control if and where `card` should be saved for any `card, pack` combination. + - Set to a function `select_card(card, pack) -> string?, boolean?` to control if and where `card` should be saved for any `card, pack` combination. Returning `true` as the second value allows the player to select whether to save or use the card. - Takes priority over `select_card` on the ConsumableType or Booster pack - `disable_shine`: *(added in 1531zeebee)* Disables the default 'shine' shader for Spectrals. diff --git a/SMODS.ObjectType.md b/SMODS.ObjectType.md index 57aff57..87abb7e 100644 --- a/SMODS.ObjectType.md +++ b/SMODS.ObjectType.md @@ -54,7 +54,7 @@ This is a subclass of `SMODS.ObjectType`. All values and functions tied to `SMOD - `text_colour`: Set a custom text color used on the card type's badge. This can take any HEX color, and saves it as `G.C.UI[key]`. - `select_card`: - Set to string of destination card area, ex. `'consumeables'`, to save cards of this type from Booster packs instead of using it. - - Set to a function `select_card(card, pack) -> string?` to control if and where `card` should be saved for any `card, pack` combination. + - Set to a function `select_card(card, pack) -> string?, boolean?` to control if and where `card` should be saved for any `card, pack` combination. Returning `true` as the second value allows the player to select whether to save or use the card. - Takes priority over `select_card` on the Booster pack ## API methods