minor change for testing, still a bunch to do. someh=thing that popped up, should hostile and friendly pegs go at the same time or staggered

This commit is contained in:
2026-07-02 03:51:22 -04:00
parent cbdca6f3cb
commit 0231c9d136
4 changed files with 15 additions and 6 deletions
+4
View File
@@ -25,6 +25,10 @@ public partial class PegAction : Node2D
public virtual bool MeetsCriteria(Peg PEG)
{
if (PEG.GetType().ToString() == "Spearman")
{
GD.Print(Name,": ",PEG._staminaRemaining >= _cost, "&&", _usesRemaining > 0, "&&", (PEG._address - Target(PEG)).Length() <= _range);
}
return PEG._staminaRemaining >= _cost
&& _usesRemaining > 0
&& (PEG._address - Target(PEG)).Length() <= _range;