Module rewards

Source
Expand description

Reward behaviors for bundle currency steps. Fixed reward lists live in the config (BundleRawStep::currencies, CurrencyBranchStep, QuestsProgressionPointSettings::reward); the only computed reward is the AFK accrual.

Structs§

RewardCtx
Inputs available to a bundle currency-step reward fn. The afk-claim call site provides the claim window and a seeded RNG; the plain claim site leaves them None.

Functions§

afk_rewards_step0
AFK reward accrual (the AFK_Rewards bundle step): currency rates per elapsed minute scaled by talents and the ads boost, plus weighted bonus draws.
register
Register this category’s behaviors.
test_afk_currency_step0
Test AFK accrual step (afk_rewards_settings.bundle_id fixture bundle): elapsed > 8s → 228, otherwise → 111, of the soft currency.

Type Aliases§

RewardFn
Signature of a bundle currency-step reward fn. Free fn (no captured state) so it is Copy and trivially stored in the registry.