Difference between revisions of "Talk:GetThreatRatio"

50 bytes removed ,  18:37, 12 July 2022
m
no edit summary
(more RE)
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 effective_health = percentage_upgraded;
   float result = percentage_upgraded;
   effective_health *= (GMST::fSmithingWeaponMax - 1.0F);
   result *= (GMST::fSmithingWeaponMax - 1.0F);
   effective_health += 1.0F;
   result += 1.0F;
   if (effective_health > 0.0) {
   if (result > 0.0) {
       return effective_health;
       return result;
   }
   }
   return 0;
   return 0;
53

edits