Fix IDE0200

This commit is contained in:
RoosterDragon
2024-11-25 20:44:40 +00:00
committed by Gustas Kažukauskas
parent ce3ad6fbb3
commit 0338258b45
45 changed files with 64 additions and 64 deletions

View File

@@ -95,7 +95,7 @@ namespace OpenRA.Mods.Cnc.Traits
var ratio = Common.Util.RandomInRange(world.LocalRandom, info.Ratio);
var positions = cells.Shuffle(world.LocalRandom)
.Take(Math.Max(1, cells.Count * ratio / 100))
.Select(x => world.Map.CenterOfCell(x));
.Select(world.Map.CenterOfCell);
foreach (var position in positions)
world.AddFrameEndTask(w => w.Add(new SpriteEffect(position, w, info.Image, info.Sequences.Random(w.LocalRandom), info.Palette)));