Refactor RandomDelay:

Allow different types of random
and reflect other use cases by renaming.
This commit is contained in:
Matthias Mailänder
2021-09-20 13:39:22 +02:00
committed by abcdefg30
parent 3a7aeb5324
commit a2a668077c
6 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Traits
public KillsSelf(Actor self, KillsSelfInfo info)
: base(info)
{
lifetime = Util.RandomDelay(self.World, info.Delay);
lifetime = Util.RandomInRange(self.World.SharedRandom, info.Delay);
}
protected override void TraitEnabled(Actor self)