From e13500875c03dafa5daf3653b4f351b99bde6247 Mon Sep 17 00:00:00 2001 From: N Date: Sun, 10 May 2026 10:56:16 -0300 Subject: [PATCH] `SMODS.copy_card` --- Utility.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Utility.md b/Utility.md index b3c33c8..33f1216 100644 --- a/Utility.md +++ b/Utility.md @@ -130,6 +130,18 @@ This function replaces `create_card`. It provides a cleaner interface to the sam - `suit` - Suit of the playing card. Can be the `key` or the `card_key` (e.g. `'Hearts'` or `'H'`). - `enhanced_poll` - Chance to pick `'Base'` over `'Enhanced'` with set `'Playing Card'`. Default: 0.6 - `allow_duplicates` - Allows duplicates of created cards (when a `key` is not specified) as if Showman was owned. +#### `SMODS.add_to_deck(card, args)` +Adds `card` to the player's owned cards, doing all the necessary operations (calling add_to_deck, emplacing the card, etc.). The following `args` are supported: +- `area` - Area the card should be added to, if not specified it will be inferred from the card. +- `playing_card` - Sets the card's playing card value. If `false`, the value is not set. If no value is specified, it sets it to the next G.playing_card (only if `card` is a playing card) +#### `SMODS.copy_card(card, args)` +This function replaces `copy_card`. `card` is the card being copied. The following `args` are supported: +- `new_card` - Copies the card into `new_card` instead of creating a new card (like the Death tarot) +- `card_scale` - Multiplier for the copy's scale +- `strip_edition` - Strips the edition from the copy +- `no_add` - Skips adding the copy to deck +- `area` - Area the new copy should be added to, if not specified it will be inferred from the card. +- `playing_card` - Sets the copy's playing card value. If `false`, the value is not set. If no value is specified, it sets it to the next G.playing_card (only if `card` is a playing card) #### `SMODS.debuff_card(card, debuff, source)` Allows manually setting and removing debuffs from cards. - `source` should be a unique identifier string. You must use the same source to remove a previously set debuff.