53
edits
DavidJCobb (talk | contribs) (more RE) |
DavidJCobb (talk | contribs) m |
||
Line 55: | Line 55: | ||
float percentage_upgraded = (weapon_health - smithing_min_value) / smithing_max_delta; | float percentage_upgraded = (weapon_health - smithing_min_value) / smithing_max_delta; | ||
float | float result = percentage_upgraded; | ||
result *= (GMST::fSmithingWeaponMax - 1.0F); | |||
result += 1.0F; | |||
if ( | if (result > 0.0) { | ||
return | return result; | ||
} | } | ||
return 0; | return 0; |
edits