some formatting - note, i need to still fix attacks not starting / ending in the right spot, since an attack might be initiated from one cell then called while peg is at another cell

This commit is contained in:
2026-06-26 16:46:16 -04:00
parent 2529d01ff4
commit f6c54e0730
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -40,12 +40,16 @@ public partial class Peg : HoverableNode
public virtual bool CanAct()
{
return _staminaRemaining > 0 && _address.Y <= _action._range && _action._usesRemaining > 0 && _staminaRemaining <= _action._cost;
return _staminaRemaining > 0
&& _address.Y <= _action._range
&& _action._usesRemaining > 0
&& _staminaRemaining <= _action._cost;
}
public virtual bool CanMove()
{
return _staminaRemaining > 0 && _address.Y > _pegController._playArea._map._firstOpenRow;
return _staminaRemaining > 0
&& _address.Y > _pegController._playArea._map._firstOpenRow;
}
public virtual void CounterAct(Commander COMMANDER)
+1 -1
View File
@@ -79,7 +79,7 @@ public partial class PegController : TurnController
_pegs.ForEach(e => e._path.Clear());
List<Peg> remainingPegs = GetRemainingPegs();
while (remainingPegs.Count > 0 && _actionLoop < 10)
while (remainingPegs.Count > 0)
{
for (int i = 0; i < remainingPegs.Count; i++)
{