private float ComputeMaxPowerOutput() { return(CheckIsWorking() && SourceComp.ProductionEnabledByType(MyResourceDistributorComponent.ElectricityId) ? BlockDefinition.MaxPowerOutput : 0f); }