Unstable 0.1500.6.0 (1984 edition)

This commit is contained in:
Markus Isberg
2021-10-09 00:22:02 +09:00
parent 08bdfc6cea
commit c8943ef9c4
96 changed files with 1817 additions and 559 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)