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); }
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); }
public virtual void TransmitResults() { transmitHelper.TransmitToKSC(scienceAdded, reputationAdded, fundsAdded, -1.0f, experimentID); }