Skip to content

Commit

Permalink
consume EC on transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvanderbeck committed Mar 28, 2015
1 parent 8c73db7 commit b03af93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/RealScienceExperiment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ public override void OnUpdate()
break;
}
transmittedPackets += quedPackets;
// Use up charge
part.RequestResource("ElectricCharge", transmissionDataResourceCost * deltaTime);
ResearchAndDevelopment.Instance.AddScience(sciencePerPacket * quedPackets, TransactionReasons.ScienceTransmission);
LogFormatted_DebugOnly(String.Format("RealScience: OnUpdate: TRANSMITTING: transmittedPackets={0:F2}, add {1:F2} science", transmittedPackets, sciencePerPacket * quedPackets));
ScreenMessage statusMessage = new ScreenMessage(String.Format("{0:F2}/{1:F2} Packets Transmitted...", transmittedPackets, dataSize), 5.0f, ScreenMessageStyle.UPPER_LEFT);
Expand Down

0 comments on commit b03af93

Please sign in to comment.