Infection stage options

interface IInfectionStage {
    color: string | IRangeColor;
    duration?: number;
    infectedStage?: number;
    radius: number;
    rate: number;
}

Implemented by

Properties

color: string | IRangeColor

Infection stage particle color

duration?: number

Infection stage duration, after this time has passed it will go to the next stage, resets to first or turn back to normal if cure is enabled.

infectedStage?: number

The infected stage set to the infected particles by the current stage

radius: number

Infection stage contagious area radius, if 0 only particles touching would be affected

rate: number

Infection rate, the higher it is, the more particles will be infected.