Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions SMODS.Challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@
- `deck.enhancement`: Can be used only if no `cards` table is specified. Given an enhancement by its key, apply it to all cards in the starting deck.
- `deck.edition`: Can be used only if no `cards` table is specified. Given an edition by its key without the `e_` prefix, apply it to all cards in the starting deck.
- `deck.seal`: Can be used only if no `cards` table is specified. Given a seal by its key, apply it to all cards in the starting deck.
- `text_colour = G.C.WHITE`: Used to set a custom text colour for the button in the challenge list.
- `button_colour = G.C.RED`: Used to set a custom button colour in the challenge list.

## API methods
- `calculate(self, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `apply(self)`
- Apply modifiers at the start of a run.
- `unlocked(self) -> bool`
- Defines when the challenge should be unlocked (or not).
1 change: 1 addition & 0 deletions SMODS.Stake.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
> Key prefixing is applied to `applied_stakes` and `above_stake` by default. If you want your stake above a stake from the base game or other mods, this can be adjusted by using `prefix_config`. [(reference)](https://github.com/Steamodded/smods/wiki/API-Documentation#common-parameters)

## API methods
- `calculate(self, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- Due to how the stake description box works, the functionality of `loc_vars` on stakes is limited. `info_queue` and `card` will not be used. Out of all possible return values, only `vars`, `key` and `set` are supported.
- `modifiers()`
Expand Down