public float GetWetMass() { float num = 0f; foreach (GameObject item in AttachableBuilding.GetAttachedNetwork(commandModule.GetComponent <AttachableBuilding>())) { RocketModule component = item.GetComponent <RocketModule>(); if ((Object)component != (Object)null) { FuelTank component2 = component.GetComponent <FuelTank>(); OxidizerTank component3 = component.GetComponent <OxidizerTank>(); SolidBooster component4 = component.GetComponent <SolidBooster>(); if ((Object)component2 != (Object)null) { num += component2.MassStored(); } if ((Object)component3 != (Object)null) { num += component3.MassStored(); } if ((Object)component4 != (Object)null) { num += component4.fuelStorage.MassStored(); } } } return(num); }