This commit is contained in:
5 files changed
+286
-8
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user