Exemple #1
0
        private void EffectFromInfect()
        {
            //Calculate death
            int deathCount = Mathf.RoundToInt(_infectPopulation * defaultDiseases.GetRndDeathRate());

            _infectPopulation -= deathCount;
            _deadPopulation   += deathCount;

            //Calculate new Infect
            float rdnInfectRate = defaultDiseases.GetRndInfectRate();

            if (actionHandler.GetValue(StatFlag.ActionStat.Quarantine, ID) > 0)
            {
                rdnInfectRate = 0.001f;
            }

            AffectPopulationWithInfectNum(InfectionMethod.CalculateInfectPeople(infectRate, _infectPopulation, rdnInfectRate));

            //Calculate cured
        }