Bug fixes, add type name to TypeIdentifier
This commit is contained in:
@@ -46,7 +46,8 @@ public static class TypeDataLoader
|
||||
throw new InvalidDataException(
|
||||
$"Effectiveness for {type} against {types[i]} is invalid: {effectiveness}. Must be greater than or equal to 0.0.");
|
||||
}
|
||||
library.SetEffectiveness(typeId, (TypeIdentifier)i, effectiveness);
|
||||
library.TryGetTypeIdentifier(types[i], out var defendingTypeId);
|
||||
library.SetEffectiveness(typeId, defendingTypeId, effectiveness);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user