Function afk_rewards_step0

Source
pub fn afk_rewards_step0(ctx: &RewardCtx<'_>) -> Result<Vec<ESCurrencyUnit>>
Expand description

AFK reward accrual (the AFK_Rewards bundle step): currency rates per elapsed minute scaled by talents and the ads boost, plus weighted bonus draws.

Determinism contract: the caller seeds the RNG from character.afk_reward_seed; each bonus iteration draws exactly one random_f64() (see [rand_weight_bonus]). The accumulation map is a BTreeMap keyed by the currency id string, so output order is the sorted id order. Do not change the draw count, draw order, or output order.