Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Gustas <[email protected]>
  • Loading branch information
Porenutak and PunkPun authored Jun 18, 2024
1 parent cefb64d commit f376864
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenRA.Mods.D2k/Traits/SpiceBloom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ void SeedResources(Actor self)
var pieces = int2.Lerp(info.Bursts[0], info.Bursts[1], ticks, growTicks);
var range = int2.Lerp(info.Range[0], info.Range[1], ticks, growTicks);
var cells = self.World.Map.FindTilesInAnnulus(self.Location, 1, range).ToList();
var emptyCells = cells
.Where(p =>
resourceLayer.GetResource(p).Type != info.ResourceType
&& resourceLayer.CanAddResource(info.ResourceType, p))
.ToList();
var projectiles = new Stack<ProjectileArgs>();
for (var i = 0; i < pieces; i++)
{
Expand Down

0 comments on commit f376864

Please sign in to comment.