Implement stat drop handling for AI, Fixes for Conversion2
All checks were successful
Build / Build (push) Successful in 39s
All checks were successful
Build / Build (push) Successful in 39s
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -36,4 +36,7 @@ public readonly struct TypeIdentifier : IEquatable<TypeIdentifier>
|
||||
|
||||
public static bool operator ==(TypeIdentifier left, TypeIdentifier right) => left.Equals(right);
|
||||
public static bool operator !=(TypeIdentifier left, TypeIdentifier right) => !left.Equals(right);
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString() => Name.ToString();
|
||||
}
|
||||
Reference in New Issue
Block a user