×
Меню
Индекс
 

fDifficultyMult

 
fDifficultyMult - модификатор сложности, влияет на наносимый урон игроку
 
Значение по умолчанию: 5
 
Код из OpenMW
 
difficulty : int [-100..100]
difficultyTerm = 0.01 * difficulty
 
if defender is player:
    if difficultyTerm > 0:
        x = fDifficultyMult * difficultyTerm
    else:
        x = difficultyTerm / fDifficultyMult
elif attacker is player:
    if difficultyTerm > 0:
        x = -difficultyTerm / fDifficultyMult
    else:
        x = fDifficultyMult * -difficultyTerm
else:
    x = 0
 
damage *= 1 + x