v0.14.6.0
This commit is contained in:
@@ -46,6 +46,8 @@ namespace Barotrauma
|
||||
{
|
||||
var value = (float) OriginalValue;
|
||||
|
||||
if (level == 0) { return value; }
|
||||
|
||||
if (Multiplier[^1] != '%')
|
||||
{
|
||||
float multiplier = ParseValue();
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Barotrauma
|
||||
int price = BasePrice;
|
||||
for (int i = 1; i <= level; i++)
|
||||
{
|
||||
price += (int)(price * MathHelper.Lerp( IncreaseLow, IncreaseHigh, i / (float)Prefab.MaxLevel) / 100);
|
||||
price += (int)(price * MathHelper.Lerp(IncreaseLow, IncreaseHigh, i / (float)Prefab.MaxLevel) / 100);
|
||||
}
|
||||
return location?.GetAdjustedMechanicalCost(price) ?? price;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user