diff --git a/SMODS.Challenge.md b/SMODS.Challenge.md index 7f809f6..ff82e93 100644 --- a/SMODS.Challenge.md +++ b/SMODS.Challenge.md @@ -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). \ No newline at end of file diff --git a/SMODS.Stake.md b/SMODS.Stake.md index 67826aa..88c71e2 100644 --- a/SMODS.Stake.md +++ b/SMODS.Stake.md @@ -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()`