Slight cleanup, do some TODOs
All checks were successful
Build / Build (push) Successful in 51s

This commit is contained in:
2025-06-22 10:42:25 +02:00
parent e305cfaef6
commit 2533512eda
114 changed files with 218 additions and 168 deletions

View File

@@ -87,7 +87,8 @@ public class IntegrationTestRunner
return new BattlePartyImpl(party, x.Indices.Select(y => new ResponsibleIndex(y[0], y[1])).ToArray());
}).ProcessOneAtATime().GetResultsAsync();
using var battle = new BattleImpl(library, parties, test.BattleSetup.CanFlee, test.BattleSetup.NumberOfSides,
test.BattleSetup.PositionsPerSide, false, test.BattleSetup.Seed);
test.BattleSetup.PositionsPerSide, false, test.BattleSetup.EnvironmentName ?? "grass",
test.BattleSetup.Seed);
foreach (var action in test.Actions)
{

View File

@@ -19,6 +19,7 @@ public class IntegrationTestBattleSetup
public byte NumberOfSides { get; set; }
public byte PositionsPerSide { get; set; }
public bool HasDamageRandomness { get; set; }
public string? EnvironmentName { get; set; }
public IntegrationTestParty[] Parties { get; set; } = null!;
}

View File

@@ -108,7 +108,7 @@ public class DeepCloneTests
new BattlePartyImpl(party1, [new ResponsibleIndex(0, 0)]),
new BattlePartyImpl(party2, [new ResponsibleIndex(1, 0)]),
};
using var battle = new BattleImpl(library, parties, false, 2, 3, false, 0);
using var battle = new BattleImpl(library, parties, false, 2, 3, false, "grass", 0);
battle.Sides[0].SwapPokemon(0, party1[0]);
battle.Sides[1].SwapPokemon(0, party2[0]);
party1[0]!.ChangeStatBoost(Statistic.Defense, 2, true, false);