We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d8413 commit 0aa6465Copy full SHA for 0aa6465
src/kOS/Module/kOSProcessor.cs
@@ -270,6 +270,8 @@ public ModifierChangeWhen GetModuleCostChangeWhen()
270
private void UpdateCostAndMass()
271
{
272
// Clamp this to prevent negative cost and mass.
273
+ // (Can happen when people edit part.cfg data or
274
+ // use ModuleManager.)
275
float spaceDelta = Mathf.Max(diskSpace - baseDiskSpace, 0.0f);
276
additionalCost = (float)System.Math.Round(spaceDelta * diskSpaceCostFactor, 0);
277
AdditionalMass = spaceDelta * diskSpaceMassFactor;
0 commit comments