示例#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);
        }
示例#2
0
 protected virtual void transmitResults(ScienceData data)
 {
     if (transmitHelper.TransmitToKSC(scienceAdded, reputationAdded, fundsAdded))
     {
         scienceAdded    = 0f;
         reputationAdded = 0f;
         fundsAdded      = 0f;
     }
 }
示例#3
0
        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);
        }
示例#4
0
 public virtual void TransmitResults()
 {
     transmitHelper.TransmitToKSC(scienceAdded, reputationAdded, fundsAdded, -1.0f, experimentID);
 }