Skip to content

Commit

Permalink
support for DynamicBatteryStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
blackliner committed Jul 9, 2017
1 parent 96163b4 commit 87d22cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RealBattery/RealBattery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>rmdir "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - Kopie\GameData\RealBattery\" /s
xcopy "$(TargetDir)." "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - Kopie\GameData\RealBattery\" /Y</PostBuildEvent>
<PostBuildEvent>rmdir "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\RealBattery\" /s
xcopy "$(TargetDir)." "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\RealBattery\" /Y</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
5 changes: 4 additions & 1 deletion RealBattery/source/RealBattery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public class RealBattery : PartModule

// for slowing down the charge/discharge status
private const double statusLowPassTau = 2;
private double lastECpower = 0;

// shows current charge (= positive value, means this part is CONSUMING xx EC/s) and discharge (= negative value, means this part is GENERATING xx EC/s) power
[KSPField(isPersistant = false)]
public double lastECpower = 0;


//------GUI
Expand Down

0 comments on commit 87d22cf

Please sign in to comment.