Skip to main content

accumulated_proc_chance

Function accumulated_proc_chance 

Source
pub fn accumulated_proc_chance(
    rng: &mut dyn FnMut() -> f64,
    base_chance: f64,
    failures: &mut u32,
    cap: u32,
) -> bool
Expand description

Rolls linearly accumulated RNG and resets the failure count after success.