示例#1
0
        // Function from file: objs.dm
        public dynamic handle_internal_lifeform(dynamic lifeform_inside_me = null, bool breath_request = false)
        {
            GasMixture environment       = null;
            double     breath_percentage = 0;


            if ((breath_request ?1:0) > 0)
            {
                environment       = this.return_air();
                breath_percentage = 0.5 / environment.return_volume();
                return(this.remove_air(environment.total_moles() * breath_percentage));
            }
            else
            {
                return(null);
            }
        }