Skip to content

Commit

Permalink
Changed cost calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Biotronic committed Aug 5, 2014
1 parent a7c9d32 commit 019c147
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified Gamedata/TweakScale/plugins/Scale.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.36.0.0")]
[assembly: AssemblyFileVersion("1.36.0.0")]
[assembly: AssemblyVersion("1.37.0.0")]
[assembly: AssemblyFileVersion("1.37.0.0")]
2 changes: 1 addition & 1 deletion Scale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public float GetModuleCost()
{
Setup();
}
return (float)(dryCost - part.partInfo.cost + part.Resources.Cast<PartResource>().Aggregate(0.0, (a, b) => a + b.amount * b.info.unitCost));
return (float)(dryCost - part.partInfo.cost + part.Resources.Cast<PartResource>().Aggregate(0.0, (a, b) => a + b.maxAmount * b.info.unitCost));
}
}
}

0 comments on commit 019c147

Please sign in to comment.