Add material arbitrage tests (#13315)

This commit is contained in:
Leon Friedrich
2023-01-15 21:57:59 +13:00
committed by GitHub
parent 9f3256730d
commit cf509c1e38
28 changed files with 415 additions and 34 deletions

View File

@@ -131,10 +131,8 @@ public sealed partial class LatheMenu : DefaultWindow
else
sb.Append('\n');
var adjustedAmount = amount;
if (prototype.ApplyMaterialDiscount)
adjustedAmount = (int) (adjustedAmount * component.MaterialUseMultiplier);
var adjustedAmount = SharedLatheSystem.AdjustMaterial(amount, prototype.ApplyMaterialDiscount, component.MaterialUseMultiplier);
sb.Append(adjustedAmount);
sb.Append(' ');
sb.Append(Loc.GetString(proto.Name));