Initial draft
Possible formatting for Diseases table:
- Each City has a base "Health" value relative to it's population size that is:
- Raised by :
- Health-related buildings (Herborist, Hospital, Sewer, ...)
- Forests
- Food Variety
- Lowered by:
- Surpopulation
- Jungle, Marsh
- Pollution (production from Buildings)
- Food rationing, Famine
- No fresh water supply
- Raised by :
- Each Turn:
- Health = BaseHealth + (RaiseValue -LowerValue) with -100 < Health < 100
- x% "generic" disease in population, based on Health value
- "Medecine" resource (produced from Plants) consumption growth with % disease
- shortage of Medecine raise Mortality rate
- Epidemic Diseases
- There is a defined set of possible Epidemic Diseases with specific properties like:
- Frequency
- Mortality
- Contagion
- Max Acquired Immunity
- Each Epidemic as it's own "Spawning Probability" value in each City
- Spawning Probability start at a negative value (for ex -100) and change each turn, pondered by Health value (+/-) and some (optional or required) conditions that may be specific to a Disease type like for example:
- No fresh water (Cholera)
- Overpopulation (Typhus)
- Specific Features (Jungle, Marsh for Malaria)
- An Epidemic can not spawn before its Spawning Probability > 0
- When an Epidemic starts, its Spawning Probability is restored to -100 and won't change until the Epidemic has ended in the city
- The Epidemic may spread to other linked Cities by raising their own Spawning Probability for that Disease, if it has a Contagion value (Influenza, Plague, ...)
- Units can also be affected, either by being linked to (or attacking) cities/units with a contagious disease, or by being on terrain/features related to diseases)
- Units carrying a contagious Diseases can affect enemy cities when attacking (and friendly units/cities by proximity/link)
- When started, an Epidemic in a city has a "strength" value that is lowered each turn based on the city Health value and available Medecine resource
- Each turn, a percentage of population is killed based on the Disease mortality value until its strength reach 0.
- There is a defined set of possible Epidemic Diseases with specific properties like:
Possible formatting for Diseases table:
Code:
<Diseases>
<Row DiseaseType="DISEASE_MALARIA" SpawnFrequency="80" Mortality="25" Contagion="0" MaxImmunity="90" />
<Row DiseaseType="DISEASE_CHOLERA" SpawnFrequency="80" Mortality="50" Contagion="0" MaxImmunity="0" />
<Row DiseaseType="DISEASE_PLAGUE" SpawnFrequency="10" Mortality="75" Contagion="50" MaxImmunity="0" />
<Row DiseaseType="DISEASE_INFLUENZA" SpawnFrequency="50" Mortality="15" Contagion="75" MaxImmunity="50" />
<Row DiseaseType="DISEASE_TYPHUS" SpawnFrequency="25" Mortality="40" Contagion="25" MaxImmunity="0" />
</Diseases>
<DiseaseCauses>
<Row DiseaseType="DISEASE_CHOLERA" Condition="NO_FRESH_WATER" Value="2" Required="true"/>
<Row DiseaseType="DISEASE_CHOLERA" Condition="LOW_HEALTH" Value="1" />
<Row DiseaseType="DISEASE_PLAGUE" Condition="LOW_HEALTH" Value="2" />
<Row DiseaseType="DISEASE_TYPHUS" Condition="LOW_HEALTH" Value="1" />
<Row DiseaseType="DISEASE_TYPHUS" Condition="OVERPOPULATION" Value="2" Required="true"/>
</DiseaseCauses>
<DiseaseFeatures>
<Row DiseaseType="DISEASE_MALARIA" FeatureType="FEATURE_MARSH" Value="2" />
<Row DiseaseType="DISEASE_MALARIA" FeatureType="FEATURE_JUNGLE" Value="1" />
</DiseaseFeatures>
Last edited: