Skip to main content

home_bonus

Function home_bonus 

Source
pub fn home_bonus(layers: &[u8], shared: bool) -> i32
Expand description

The home’s bonus to a citizen’s happiness: how many of the entrance cell’s first five happiness layers are set, less the sixth, at least 0; a quarter of that (rounded down) when the home holds more than one family.

Original: FUN_140117fb0 (its home part).