Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -23,7 +23,7 @@ public class DamageCalculatorTests
|
||||
[Test]
|
||||
public async Task BulbapediaExampleDamageTest()
|
||||
{
|
||||
var attacker = Substitute.For<IPokemon>();
|
||||
var attacker = Substitute.For<IBattlePokemon>();
|
||||
// Imagine a level 75 Glaceon
|
||||
attacker.Level.Returns((byte)75);
|
||||
// with an effective Attack stat of 123
|
||||
@@ -31,7 +31,7 @@ public class DamageCalculatorTests
|
||||
// We use 10 as the Ice type
|
||||
attacker.Types.Returns([new TypeIdentifier(10, "ice")]);
|
||||
|
||||
var defender = Substitute.For<IPokemon>();
|
||||
var defender = Substitute.For<IBattlePokemon>();
|
||||
// a Garchomp with an effective Defense stat of 163
|
||||
defender.BoostedStats.Returns(new StatisticSet<uint>(1, 1, 163, 1, 1, 1));
|
||||
defender.GetScripts().Returns(new ScriptIterator([]));
|
||||
|
||||
Reference in New Issue
Block a user