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:
@@ -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
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user