(92723d062) Increase Hammerhead head attack dmg to characters.

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:57:10 +02:00
parent 7a5f589639
commit 8a22dbfebd
4 changed files with 192 additions and 3 deletions
@@ -180,8 +180,7 @@ namespace Barotrauma.Items.Components
#endif
//items in a bad condition are more sensitive to overvoltage
float maxOverVoltage = MathHelper.Lerp(OverloadVoltage * 0.75f, OverloadVoltage, item.Condition / item.MaxCondition);
maxOverVoltage = Math.Max(OverloadVoltage, 1.0f);
float maxOverVoltage = MathHelper.Lerp(Math.Min(OverloadVoltage, 1.0f), OverloadVoltage, item.Condition / item.MaxCondition);
//if the item can't be fixed, don't allow it to break
if (!item.Repairables.Any() || !CanBeOverloaded) continue;