Example #1
0
        public void PublishResearch()
        {
            float storedScience = sciLab.storedScience;
            float value         = storedScience * reputationPerData * (1.0f + (scientistBonus * GetTotalCrewSkill()));

            //Transmit data for publishing (Reputation gain)
            transmitHelper.TransmitToKSC(0, value, 0, storedScience);
        }
Example #2
0
 protected virtual void transmitResults(ScienceData data)
 {
     if (transmitHelper.TransmitToKSC(scienceAdded, reputationAdded, fundsAdded))
     {
         scienceAdded    = 0f;
         reputationAdded = 0f;
         fundsAdded      = 0f;
     }
 }
        protected bool transmitData(float dataAmount, bool transmitForSale = false)
        {
            float amount;
            bool  dataTransmitted = false;

            if (transmitForSale)
            {
                amount          = dataAmount * fundsPerData * (1.0f + (scientistBonus * GetTotalCrewSkill()));
                dataTransmitted = transmitHelper.TransmitToKSC(0, 0, amount);
            }
            else
            {
                amount          = dataAmount * reputationPerData * (1.0f + (scientistBonus * GetTotalCrewSkill()));
                dataTransmitted = transmitHelper.TransmitToKSC(0, amount, 0);
            }

            return(dataTransmitted);
        }
Example #4
0
 public virtual void TransmitResults()
 {
     transmitHelper.TransmitToKSC(scienceAdded, reputationAdded, fundsAdded, -1.0f, experimentID);
 }