DIFF

class AgentBaseSource

AgentBase MessageReceiverBase

All members, including inherited

Constructors 1

void AgentBase()
References Init(), and InitDefaults()

Members 13

float m_Invasibility

how fast the agent grows when potent enough to grow

float m_Digestibility = 0.1

multiplier for agents digested in the player stomach from an infected item(agents_transfered = digested_amount(in grams or mls) * m_Digestibility)

int m_AutoinfectCount = 1

number of agents injected during the autoinfection

float m_AutoinfectProbability = CalculateAutoinfectProbability(0)

[0..1], 0 = zero chance, 1 = 100% chance of getting this agent once per hour

Referenced by AutoinfectCheck()
float m_TransferabilityAirOut

transferibility airborne out

float m_AntibioticsResistance = 1

[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances

protected ref map<EMedicalDrugsType, float> m_DrugResistances = new map<EMedicalDrugsType, float>()
float m_DieOffSpeed = 1

how fast the agent dies off when not potent enough to grow(per sec)

Methods 25

protected void InitDefaults()
Referenced by AgentBase()
void Init()
Referenced by AgentBase()
float GetInvasibilityEx(PlayerBase player)
float GetDigestibilityEx(PlayerBase player)
EStatLevels GetPotency()
References m_Potency
Referenced by GetPotencyEx()
float GetAntibioticsResistanceEx(PlayerBase player)
bool GrowDuringMedicalDrugsAttack(EMedicalDrugsType drugType, PlayerBase player)

should this agent grow based on invasibility even during usage of specific medical drugs attack

float GetDigestibility()
References m_Digestibility
Referenced by GetDigestibilityEx()
float CalculateAutoinfectProbability(float userprob)
References Math.Pow()
bool CanAutoinfectPlayer(PlayerBase player)
Referenced by AutoinfectCheck()
int GetMaxCount()
References m_MaxCount
int GetAutoinfectCount()
bool GrowDuringAntibioticsAttack(PlayerBase player)

should this agent grow based on invasibility even during antibiotics attack