pub fn happiness_after(
r: &LifeRules,
flags: u32,
happiness: f32,
field_84: i32,
foods: i32,
home_bonus: Option<i32>,
priest: bool,
) -> f32Expand description
A citizen’s happiness after its events: the events move it at once, then it steps half a point toward a target made of the needs met, the work, the food variety, the home’s bonus and the chapel, scaled by an eighth of the maximum; it stays within 0 and the maximum.
Measured: tools/emu/happiness.py (the original on 2,000 cases).
Original: FUN_140117fb0.