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

◆ AddSpecialtyBonus()

float SoftSkillsManager::AddSpecialtyBonus ( float base_value,
float specialty_weight,
bool is_cacomponent = false,
float limit_efficiency = 2 )
inlineprotected

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

169 {
170 if ( specialty_weight == 0 )
171 {
172 return base_value;
173 }
174
175 SetBonusBefore( is_cacomponent, base_value);
176
177 float adjusted_value;
178
180
181 if ( limit_efficiency != 0 )
182 {
183 if ( specialty_weight < 0 )
184 {
185 adjusted_value = base_value + ( ( base_value * m_PreciseLevel ) / limit_efficiency );
186 }
187 else
188 {
189 adjusted_value = base_value + ( ( base_value * m_RoughLevel ) / limit_efficiency );
190 }
191 }
192 else
193 {
194 if ( specialty_weight < 0 )
195 {
196 adjusted_value = base_value + ( ( base_value * m_PreciseLevel ) );
197 }
198 else
199 {
200 adjusted_value = base_value + ( ( base_value * m_RoughLevel ) );
201 }
202 }
203
204 SetBonusAfter( is_cacomponent, adjusted_value );
205
206 return adjusted_value;
207 }
float m_RoughLevel
Определения SoftSkillsManager.c:5
void SetBonusAfter(bool is_cacomponent, float adjusted_value)
Определения SoftSkillsManager.c:455
void GetPreciseRoughLevels()
Определения SoftSkillsManager.c:335
void SetBonusBefore(bool is_cacomponent, float base_value)
Определения SoftSkillsManager.c:439
float m_PreciseLevel
Определения SoftSkillsManager.c:6

Перекрестные ссылки GetPreciseRoughLevels(), m_PreciseLevel, m_RoughLevel, SetBonusAfter() и SetBonusBefore().