pub fn outbreak_check(
r: &LifeRules,
health: f32,
immunity: &mut i64,
clock: &mut i64,
town_disease: f32,
dt: i64,
rng: &mut Random,
) -> boolExpand description
The disease check of a citizen with no disease: the immunity runs down by dt, and the odds
come from the citizen’s weakness and the town’s disease. With odds of 0 or less the clock is
cleared and nothing is drawn. Otherwise one RandFloat against the time on the clock over the
odds’ span, and the clock is cleared. True when the citizen falls ill (the caller starts the
outbreak).
Measured: tools/emu/disease_check.py (2,000 cases; the original draws exactly when the
odds are above 0).
Original: FUN_140117ca0 (its first branch).