Bug fixes, add type name to TypeIdentifier

This commit is contained in:
2025-03-07 12:57:06 +01:00
parent 3571b2130e
commit 2c987e32ee
9 changed files with 29 additions and 34 deletions

View File

@@ -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);
}
}