DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AddExponentialPrecise()

float SoftSkillsManager::AddExponentialPrecise ( float specialty_weight)
inlineprotected

См. определение в файле SoftSkillsManager.c строка 74

75 {
77
78 if( m_UserActionsCounter == 0)
79 {
82 }
83
84 float adjusted_weight = specialty_weight / Math.Sqrt( Math.AbsInt( m_UserActionsCounter ) );
85
86 SetLastUAValue( adjusted_weight );
87
88 m_SpecialtyLevel += adjusted_weight;
90
91 return m_SpecialtyLevel;
92 }
void SetLastUAValue(float last_ua_value)
Определения SoftSkillsManager.c:433
const float PRECISE_WEIGHT_LIMIT
Определения SoftSkillsManager.c:15
float m_SpecialtyLevel
Определения SoftSkillsManager.c:4
const float ROUGH_WEIGHT_LIMIT
Определения SoftSkillsManager.c:16
int m_UserActionsCounter
Определения SoftSkillsManager.c:12

Перекрестные ссылки Math::AbsInt(), Math::Clamp(), m_SpecialtyLevel, m_UserActionsCounter, PRECISE_WEIGHT_LIMIT, ROUGH_WEIGHT_LIMIT, SetLastUAValue() и Math::Sqrt().

Используется в AddSpecialty().