class InfluenzaAgentSource
InfluenzaAgent › AgentBase › MessageReceiverBase
All members, including inherited
Constants 11
const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNINGReferenced by CanAutoinfectPlayer()
protected const float INVASIBILITY_INC_LOW_HC = 0.40Referenced by GetInvasibilityEx()
protected const float INVASIBILITY_INC_MEDIUM_HC = 0.60Referenced by GetInvasibilityEx()
protected const float INVASIBILITY_INC_CRITICAL_HC = 0.70Referenced by GetInvasibilityEx()
protected const float INVASIBILITY_DEC_COMMON_COLD = -0.3Referenced by GetInvasibilityEx()
protected const float INVASIBILITY_DEC_INFLUENZA = -0.3Referenced by GetInvasibilityEx()
protected const float INVASIBILITY_DEC_PNEUMONIA = 0.00Referenced by GetInvasibilityEx()
protected const int MAX_TIME_TO_CONTRACT = 8650at this time [s], character will contract the disease
Referenced by AutoinfectCheck()
protected const int CONTRACT_TIME_THRESHOLD_MIN = 10min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
Referenced by AutoinfectCheck()
protected const int CONTRACT_TIME_THRESHOLD_MAX = 200max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
Referenced by AutoinfectCheck()
protected const float CONTRACT_HEATCOMFORT_MODIFIER[3] = { 0.25, // low 0.6, // medium 1.0, // critical }Referenced by AutoinfectCheck()
Members 2
protected int m_TimeToContract = MAX_TIME_TO_CONTRACTReferenced by AutoinfectCheck()
protected int m_ElapsedTimeMethods 6
override void Init()References map.Set(), CommonColdMdfr.AGENT_THRESHOLD_ACTIVATE, AgentBase.m_AntibioticsResistance
Show 12 more
, AgentBase.m_AutoinfectCount, AgentBase.m_DieOffSpeed, AgentBase.m_Digestibility, AgentBase.m_DrugResistances, m_ElapsedTime, AgentBase.m_Invasibility, AgentBase.m_MaxCount, AgentBase.m_Potency, AgentBase.m_TransferabilityAirOut, AgentBase.m_TransferabilityIn, AgentBase.m_TransferabilityOut, and AgentBase.m_Typeoverride bool AutoinfectCheck(float deltaT, PlayerBase player)References Math.Clamp(), PlayerStat.Get(), PlayerBase.GetStatHeatComfort()
Show 13 more
, PlayerAgentPool.GetTemporaryResistance(), Math.RandomFloatInclusive(), CONTRACT_HEATCOMFORT_MODIFIER, CONTRACT_TIME_THRESHOLD_MAX, CONTRACT_TIME_THRESHOLD_MIN, PlayerBase.m_AgentPool, m_ElapsedTime, m_TimeToContract, float.MAX, MAX_TIME_TO_CONTRACT, PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL, PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_EMPTY, and PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNINGoverride bool CanAutoinfectPlayer(PlayerBase player)override float GetInvasibilityEx(PlayerBase player)References PlayerStat.Get(), PlayerBase.GetModifiersManager(), PlayerBase.GetStatHeatComfort()
Show 10 more
, ModifiersManager.IsModifierActive(), INVASIBILITY_DEC_COMMON_COLD, INVASIBILITY_DEC_INFLUENZA, INVASIBILITY_DEC_PNEUMONIA, INVASIBILITY_INC_CRITICAL_HC, INVASIBILITY_INC_LOW_HC, INVASIBILITY_INC_MEDIUM_HC, PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL, PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_EMPTY, and PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNINGoverride EStatLevels GetPotencyEx(PlayerBase player)override float GetDieOffSpeedEx(PlayerBase player)