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

◆ AddExponentialRough()

float SoftSkillsManager::AddExponentialRough ( float specialty_weight)
inlineprotected

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

96 {
98
99 if( m_UserActionsCounter == 0)
100 {
103 }
104
105 float adjusted_weight = specialty_weight / Math.Sqrt( Math.AbsInt( m_UserActionsCounter ) );
106
107 SetLastUAValue( adjusted_weight );
108
109 m_SpecialtyLevel += adjusted_weight;
111
112 return m_SpecialtyLevel;
113 }
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().