Initial setup for testing AI performance, random fixes
All checks were successful
Build / Build (push) Successful in 54s

This commit is contained in:
2025-07-05 13:56:33 +02:00
parent 4499927551
commit 32aaa5150a
33 changed files with 511 additions and 26 deletions

View File

@@ -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}"),
};
}
}

View File

@@ -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()
{