3 protected float m_LocalTimeElpased;
4 protected float m_TimeElpased;
5 protected float m_TimeToComplete;
6 protected float m_DefaultTimeToComplete;
7 protected ref Param1<float> m_SpentUnits;
11 m_DefaultTimeToComplete = time_to_complete_action;
19 m_SpentUnits =
new Param1<float>(0);
23 m_SpentUnits.param1 = 0;
26 m_TimeToComplete = action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( m_DefaultTimeToComplete,
m_Action.GetSpecialtyWeight(),
true);
31 if ( !action_data.m_Player )
36 if ( m_TimeElpased < m_TimeToComplete )
38 m_TimeElpased += action_data.m_Player.GetDeltaT();
45 m_SpentUnits.param1 = m_TimeElpased;
46 SetACData(m_SpentUnits);