public double supplyFNResourcePerSecondWithMax(double supply, double maxsupply, String resourcename) { ORSResourceManager manager = getManagerForVessel(resourcename); if (manager == null) { return(0); } return(manager.powerSupplyPerSecondWithMax(this, Math.Max(supply, 0), Math.Max(maxsupply, 0))); }
public double supplyFNResourcePerSecondWithMax(double supply, double maxsupply, String resourcename) { ORSResourceManager manager = getManagerForVessel(resourcename, vessel); if (manager == null) { UnityEngine.Debug.LogWarning("ORS - did not find manager for vessel"); return(0); } return(manager.powerSupplyPerSecondWithMax(this, Math.Max(supply, 0), Math.Max(maxsupply, 0))); }