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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user