Implement stat drop handling for AI, Fixes for Conversion2
All checks were successful
Build / Build (push) Successful in 39s

This commit is contained in:
2026-05-23 12:57:15 +02:00
parent a5ef757b01
commit be5100df8a
5 changed files with 286 additions and 8 deletions

View File

@@ -84,7 +84,10 @@ public class TypeLibrary : IReadOnlyTypeLibrary
public IEnumerable<(TypeIdentifier, float)> GetAllEffectivenessFromAttacking(TypeIdentifier attacking)
{
if (attacking.Value < 1 || attacking.Value > _effectiveness.Count)
throw new ArgumentOutOfRangeException(nameof(attacking));
{
throw new ArgumentOutOfRangeException(nameof(attacking), attacking,
"Attacking type index is out of range.");
}
for (var i = 0; i < _effectiveness.Count; i++)
{
var type = _types[i];