Release v0.15.12.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user