Adds battle history, fixes code style
This commit is contained in:
@@ -12,7 +12,7 @@ public class TurnChoiceComparer : IComparer<ITurnChoice>
|
||||
{
|
||||
XEqualsY = 0,
|
||||
XLessThanY = -1,
|
||||
XGreaterThanY = 1
|
||||
XGreaterThanY = 1,
|
||||
}
|
||||
|
||||
private static CompareValues CompareForSameType(ITurnChoice x, ITurnChoice y)
|
||||
@@ -58,7 +58,7 @@ public class TurnChoiceComparer : IComparer<ITurnChoice>
|
||||
{
|
||||
IMoveChoice => CompareValues.XLessThanY,
|
||||
IItemChoice itemY => CompareForSameType(itemX, itemY),
|
||||
_ => CompareValues.XGreaterThanY
|
||||
_ => CompareValues.XGreaterThanY,
|
||||
};
|
||||
case ISwitchChoice switchX:
|
||||
// Switch choices go third
|
||||
@@ -66,7 +66,7 @@ public class TurnChoiceComparer : IComparer<ITurnChoice>
|
||||
{
|
||||
IMoveChoice or IItemChoice => CompareValues.XLessThanY,
|
||||
ISwitchChoice switchY => CompareForSameType(switchX, switchY),
|
||||
_ => CompareValues.XGreaterThanY
|
||||
_ => CompareValues.XGreaterThanY,
|
||||
};
|
||||
case IPassChoice passX:
|
||||
// Pass choices go last
|
||||
@@ -74,7 +74,7 @@ public class TurnChoiceComparer : IComparer<ITurnChoice>
|
||||
{
|
||||
IMoveChoice or IItemChoice or ISwitchChoice => CompareValues.XLessThanY,
|
||||
IPassChoice passY => CompareForSameType(passX, passY),
|
||||
_ => CompareValues.XGreaterThanY
|
||||
_ => CompareValues.XGreaterThanY,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user