Beispiel #1
0
        private void tryToInfectPeople()
        {
            List <Person> potentialHosts = this.getPeopleOnSight();

            potentialHosts.ForEach(person => {
                bool willInfectPerson = RandomEvents.virusWillInfectPerson();
                if (willInfectPerson && !person.statusIncludes(Defs.immune) &&
                    person.virus == null)
                {
                    new Virus(person);
                }
            });
        }