implemented visibility, so pegs can only scope out as far as they can see.

This commit is contained in:
2026-06-30 18:24:11 -04:00
parent c8e81e4f48
commit b1625b15a0
8 changed files with 53 additions and 32 deletions
+1 -2
View File
@@ -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;
}));