added friendly and neutral peg, added disposition
This commit is contained in:
@@ -7,6 +7,7 @@ public partial class BasicMovement : PegAction
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
_priority = 0;
|
||||
_healthChange = 0;
|
||||
_cost = 1;
|
||||
_range = 2^32;
|
||||
@@ -24,11 +25,12 @@ public partial class BasicMovement : PegAction
|
||||
return null;
|
||||
}
|
||||
Vector2I cell = path[0];
|
||||
|
||||
map.SetCellPeg(cell, PEG);
|
||||
PEG._path.Add(cell);
|
||||
|
||||
Tween subtween = CreateTween();
|
||||
subtween.TweenProperty(this, "global_position", map.GetCellPositionFromAddress(cell), 0.25f);
|
||||
subtween.TweenProperty(PEG, "global_position", map.GetCellPositionFromAddress(cell), 0.25f);
|
||||
|
||||
return subtween;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user