OK, I think I may have figured out the properties for "Disease - Smallpox". Is this doable with the current system?
Property:
Disease - Smallpox
City property only, mitigated by some buildings only.
Property value
= -1 means immune and no change can occur to the value
= 0 means has never had an outbreak so no accumulation of points occurs
>= 1 means 0.1% chance of the small pox event also known as secondary outbreak.
Every turn for each city
If Property value is -1 or 0 skip
If Property value is >= 1
Accumulate points = +10 less building mitigation values (cant go below 1)
Check if secondary outbreak occurs (done by Event?)
if so reset Property value to 1 and reduce population by a quarter where the quarter is rounded down.
Check all cities with a trade connection to this city
If trade city has Property value = 0
Do primary infection. (done by Event?) IE set pop to square root of population rounded down and set property value to 1
Buildings that mitigate smallpox
Hospital -3
Plague Hospital -2
Doctor's Surgery -1
Health Spa (G Doctor's building) -2