Exemplo n.º 1
0
 /// <summary>
 /// Updates the column statistics (with the exception of the <see cref="UpdateOldTrainingTime"/>) from the given scratchpad.
 /// </summary>
 /// <param name="character"></param>
 /// <param name="characterWithoutImplants"></param>
 /// <param name="time"></param>
 internal void UpdateStatistics(BaseCharacter character, BaseCharacter characterWithoutImplants, ref DateTime time)
 {
     SkillPointsRequired       = m_skill.GetPointsRequiredForLevel(m_level) - character.GetSkillPoints(m_skill);
     EstimatedTotalSkillPoints = character.SkillPoints + SkillPointsRequired;
     TrainingTime        = character.GetTrainingTime(m_skill, m_level);
     NaturalTrainingTime = characterWithoutImplants.GetTrainingTime(m_skill, m_level);
     SpPerHour           = (int)Math.Round(character.GetBaseSPPerHour(m_skill));
     EndTime             = time + TrainingTime;
     StartTime           = time;
     time = EndTime;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Updates the <see cref="OldTrainingTime"/> statistic.
 /// </summary>
 /// <param name="character"></param>
 internal void UpdateOldTrainingTime(BaseCharacter character)
 {
     OldTrainingTime = character.GetTrainingTime(m_skill, m_level);
 }