Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper

This commit is contained in:
2026-08-28 15:20:26 +02:00
parent 942be8eaeb
commit 8a2733a0a9
859 changed files with 4408 additions and 5331 deletions

View File

@@ -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([]));