Initial setup for testing AI performance, random fixes
All checks were successful
Build / Build (push) Successful in 54s
All checks were successful
Build / Build (push) Successful in 54s
This commit is contained in:
@@ -132,7 +132,7 @@ public class Gen7BattleStatCalculator : IBattleStatCalculator
|
||||
4 => 6.0f / 2.0f,
|
||||
5 => 7.0f / 2.0f,
|
||||
6 => 8.0f / 2.0f,
|
||||
_ => throw new ArgumentException("Stat boost was out of expected range of -6 to 6"),
|
||||
_ => throw new ArgumentException($"Stat boost was out of expected range of -6 to 6: {boost}"),
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,10 @@ public class Gen7MiscLibrary : IMiscLibrary
|
||||
public ITurnChoice ReplacementChoice(IPokemon user, byte targetSide, byte targetPosition) =>
|
||||
new MoveChoice(user, new LearnedMoveImpl(_struggleData, MoveLearnMethod.Unknown), targetSide, targetPosition);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsReplacementChoice(ITurnChoice choice) =>
|
||||
choice is MoveChoice moveChoice && moveChoice.ChosenMove.MoveData == _struggleData;
|
||||
|
||||
/// <inheritdoc />
|
||||
public TimeOfDay GetTimeOfDay()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user