Release v0.15.12.0

This commit is contained in:
Joonas Rikkonen
2021-10-27 18:50:57 +03:00
parent bf95e82d80
commit 234fb6bc06
450 changed files with 26042 additions and 10457 deletions
@@ -147,7 +147,7 @@ namespace Barotrauma
/// <returns></returns>
private static float ApplyPercentage(float value, float amount, int times)
{
return times <= 0 ? value : ApplyPercentage(value + (value * amount / 100), amount, --times);
return (1f + (amount / 100f * times)) * value;
}
public static PropertyReference[] ParseAttributes(IEnumerable<XAttribute> attributes, Upgrade upgrade)