class ContaminationStage2MdfrSource
ContaminationStage2Mdfr › ModifierBase
All members, including inherited
Constants 6
static const int AGENT_THRESHOLD_ACTIVATE = 100static const int AGENT_THRESHOLD_DEACTIVATE = 400static const int EVENT_1_INTERVAL_MIN = 20static const int EVENT_1_INTERVAL_MAX = 40static const int EVENT_2_INTERVAL_MIN = 200static const int EVENT_2_INTERVAL_MAX = 400Members 4
protected float m_NextEvent1protected float m_NextEvent2Methods 7
override void Init()override string GetDebugText()override protected bool ActivateCondition(PlayerBase player)References PlayerBase.GetSingleAgentCount(), AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE
Referenced by DeactivateCondition()
override protected void OnActivate(PlayerBase player)References PlayerBase.IncreaseDiseaseCount(), Math.RandomFloatInclusive(), EVENT_1_INTERVAL_MAX
Show 5 more
, EVENT_1_INTERVAL_MIN, EVENT_2_INTERVAL_MAX, EVENT_2_INTERVAL_MIN, m_NextEvent1, and m_NextEvent2override protected void OnDeactivate(PlayerBase player)References PlayerBase.DecreaseDiseaseCount()
override protected bool DeactivateCondition(PlayerBase player)References ActivateCondition()
override protected void OnTick(PlayerBase player, float deltaT)