continuing to switch to MapCell orientation
This commit is contained in:
+3
-3
@@ -27,7 +27,7 @@ public partial class PegAction : Node2D
|
||||
{
|
||||
return PEG._staminaRemaining >= _cost
|
||||
&& _usesRemaining > 0
|
||||
&& (PEG._address - Target(PEG)).Length() <= _range;
|
||||
&& (PEG._address - Target(PEG)._address).Length() <= _range;
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
@@ -35,8 +35,8 @@ public partial class PegAction : Node2D
|
||||
_usesRemaining = _usesMax;
|
||||
}
|
||||
|
||||
public virtual Vector2I Target(Peg PEG)
|
||||
public virtual MapCell Target(Peg PEG)
|
||||
{
|
||||
return PEG._address;
|
||||
return PEG._cell;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user