starting to build out more actions and pegs, first thing to do tho is rework movement / targeting a little bit

This commit is contained in:
2026-07-02 00:20:52 -04:00
parent bbe9eefcfa
commit 909f466f92
15 changed files with 52 additions and 14 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ public partial class Peg : HoverableNode
public virtual List<Vector2I> GetBestPath(bool PARTIAL = false)
{
Map map = _pegController._playArea._map;
List<Vector2I> goals = GetGoals();
List<Vector2I> goals = Target();
for (int i = 0; i < goals.Count; i++)
{
@@ -67,7 +67,7 @@ public partial class Peg : HoverableNode
return [.. map._cells.Where(c => (c - _address).Length() <= _visibility)];
}
public virtual List<Vector2I> GetGoals()
public virtual List<Vector2I> Target()
{
Map map = _pegController._playArea._map;
List<Vector2I> visible = GetVisibleCells();