Skip to main content

recovers

Function recovers 

Source
pub fn recovers(
    r: &LifeRules,
    recovery: f32,
    doctor: bool,
    rng: &mut Random,
) -> bool
Expand description

Whether a citizen whose illness has ended recovers: one RandFloat drawn first, then the citizen lives when one over the disease’s recovery, over the doctor’s factor (1 without a doctor), is below it.

Measured: tools/emu/recovery.py (the original on 2,000 cases).

Original: FUN_140117880.