Add randomSeed parameter to BattleImpl, fix flaky test
This commit is contained in:
3 files changed
+11
-3
No files matched your search
@@ -19,6 +19,14 @@ public interface IBattleRandom : IRandom
|
||||
/// <inheritdoc cref="IBattleRandom"/>
|
||||
public class BattleRandomImpl : RandomImpl, IBattleRandom
|
||||
{
|
||||
public BattleRandomImpl()
|
||||
{
|
||||
}
|
||||
|
||||
public BattleRandomImpl(int seed) : base(seed)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool EffectChance(float chance, IExecutingMove executingMove, IPokemon target, byte hitNumber)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user