예제 #1
0
    void TryDiseaseAtPerson(Person p, House house)
    {
        if (p.diseased)
        {
            return;
        }

        if (Random.Range(1, 100) + house.Hygiene <= yield)
        {
            p.TurnDiseased();
            house.AddDiseasedResident();
        }               //want to roll low to cause disease
    }