Skip to main content

newborn

Function newborn 

Source
pub fn newborn(
    rng: &mut Random,
    rules: &CitizenRules,
    male_names: &NameDatabase,
    female_names: &NameDatabase,
    mother: &Citizen,
    male: bool,
) -> Citizen
Expand description

A child born to mother: its sex, a name from that sex’s database, the appearance, no education and a lifespan. Position, age and family are set by the caller.

Original: FUN_14011c550, called from FUN_140117060.