Bug fixes, add type name to TypeIdentifier

This commit is contained in:
Deukhoofd committed 2025-03-07 12:57:06 +01:00
1 parent 3571b2130e
commit 2c987e32ee
9 files changed
+29 -34

No files matched your search

+2 -1
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);
}
}