implemented visibility, so pegs can only scope out as far as they can see.
This commit is contained in:
@@ -9,7 +9,6 @@ public partial class Shortbow : PegAction
|
||||
base._Ready();
|
||||
_category = "attack";
|
||||
_priority = 1;
|
||||
_healthChange = -1;
|
||||
_cost = 2;
|
||||
_range = 1;
|
||||
_usesMax = 1;
|
||||
@@ -24,7 +23,7 @@ public partial class Shortbow : PegAction
|
||||
subtween.TweenProperty(_image, "global_position", target, 0.5f);
|
||||
subtween.TweenCallback(Callable.From(() =>
|
||||
{
|
||||
PEG._pegController._playerController.ChangeHealth(_healthChange, this);
|
||||
PEG._pegController._playerController.ChangeHealth(-1, this);
|
||||
Position = Vector2.Zero;
|
||||
Visible = false;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user