15 override bool ActivateCondition(
PlayerBase player)
29 override bool DeactivateCondition(
PlayerBase player)
34 override void OnTick(
PlayerBase player,
float deltaT)
37 float result = player.GetImmunity() * deltaT;
38 player.ImmuneSystemTick(result, deltaT);
41 if( m_HasDisease != player.HasDisease() )
43 if(player.HasDisease())
45 if( player.GetNotifiersManager() ) player.GetNotifiersManager().ActivateByType(
eNotifiers.NTF_SICK);
49 if( player.GetNotifiersManager() ) player.GetNotifiersManager().DeactivateByType(
eNotifiers.NTF_SICK);
51 m_HasDisease = player.HasDisease();
55 if( m_HasHealings != player.HasHealings() )
58 if( player.HasHealings() )
60 if( player.GetNotifiersManager() )
61 player.GetNotifiersManager().ActivateByType(
eNotifiers.NTF_PILLS);
65 if( player.GetNotifiersManager() )
66 player.GetNotifiersManager().DeactivateByType(
eNotifiers.NTF_PILLS);
68 m_HasHealings = player.HasHealings();