Hi all. I’m excited to try out the new types of shots
I’d just like a quick clarification on the seeker missile. It looks to me like the game engine’s code and the documentation are contradicting each other.
From the readme:
Fire Seeker Missle Command - This will fire a missle at target area, finding the nearest ship cell in a 5 x 5 block of cells , if there is no ship the center point given will be the target of the missle.
From the game engine (FireSeekerMissleCommand)
var cellInRage = occupiedCells.Select(x => new
distance = Math.Sqrt(Math.Pow((x.X - _centerPoint.X), 2) + Math.Pow(x.Y - _centerPoint.Y, 2)),
cell = x
}).OrderBy(x => x.distance).First(x => x.distance <= 2);
So the docs are saying a 5 by 5 block, but the code seems to be working on a Euclidean distance of less than 2 from the center, which would end up excluding the three furthest blocks on each corner of the 5 by 5 block.
Which of these two is correct?