コード例 #1
0
        private void CheckEVA(Vessel evaKerbal)
        {
            if (IsAtHomeForEva(evaKerbal))
            {
                return;
            }

            var kerbal = evaKerbal.GetVesselCrew()[0];
            //Check their status.
            var kerbalStatus = LifeSupportManager.Instance.FetchKerbal(kerbal);

            if (evaKerbal.missionTime > LifeSupportScenario.Instance.settings.GetSettings().EVATime)
            {
                var effect = LifeSupportManager.GetEVAExcessEffect(kerbalStatus.KerbalName);
                ApplyEVAEffect(kerbalStatus, kerbal, evaKerbal, effect);
            }
        }