Refactor RandomDelay:
Allow different types of random and reflect other use cases by renaming.
This commit is contained in:
committed by
abcdefg30
parent
3a7aeb5324
commit
a2a668077c
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
public TransformsNearResources(Actor self, TransformsNearResourcesInfo info)
|
||||
{
|
||||
resourceLayer = self.World.WorldActor.Trait<IResourceLayer>();
|
||||
delay = Common.Util.RandomDelay(self.World, info.Delay);
|
||||
delay = Common.Util.RandomInRange(self.World.SharedRandom, info.Delay);
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user