Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Utility.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down