From 382bbf1af81afd8d6f36fc7461eae2eda4d9857f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Venturino?= Date: Wed, 28 Jan 2026 17:11:24 -0300 Subject: [PATCH 1/2] Challenge and Stake `calculate` --- SMODS.Challenge.md | 3 +++ SMODS.Stake.md | 1 + 2 files changed, 4 insertions(+) diff --git a/SMODS.Challenge.md b/SMODS.Challenge.md index 7f809f6..3e689cd 100644 --- a/SMODS.Challenge.md +++ b/SMODS.Challenge.md @@ -42,5 +42,8 @@ - `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()` From cbc5e8731689ed2773ccc16f64a28d64878a2336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Venturino?= Date: Wed, 28 Jan 2026 17:14:45 -0300 Subject: [PATCH 2/2] this can be here --- SMODS.Challenge.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SMODS.Challenge.md b/SMODS.Challenge.md index 3e689cd..ff82e93 100644 --- a/SMODS.Challenge.md +++ b/SMODS.Challenge.md @@ -39,6 +39,7 @@ - `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