diff --git a/OpenRA.Mods.Common/Activities/DeliverResources.cs b/OpenRA.Mods.Common/Activities/DeliverResources.cs index a6d49cec96..5983ba1190 100644 --- a/OpenRA.Mods.Common/Activities/DeliverResources.cs +++ b/OpenRA.Mods.Common/Activities/DeliverResources.cs @@ -55,9 +55,9 @@ namespace OpenRA.Mods.Common.Activities if (harv.LinkedProc == null || !harv.LinkedProc.IsInWorld) harv.ChooseNewProc(self, null); - // No refineries exist; check again after delay of 1s. + // No refineries exist; check again after delay defined in Harvester. if (harv.LinkedProc == null) - return Util.SequenceActivities(new Wait(25), this); + return Util.SequenceActivities(new Wait(harvInfo.SearchForDeliveryBuildingDelay), this); var proc = harv.LinkedProc; var iao = proc.Trait(); diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index 555291a25c..822b2efb60 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -23,6 +23,9 @@ namespace OpenRA.Mods.Common.Traits { public readonly string[] DeliveryBuildings = { }; + [Desc("How long (in ticks) to wait until (re-)checking for a nearby available DeliveryBuilding if not yet linked to one.")] + public readonly int SearchForDeliveryBuildingDelay = 125; + [Desc("How much resources it can carry.")] public readonly int Capacity = 28;