-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
Sentry event: d7000a22c8974f3993523b34db30aa2b
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,12 @@ public PortraitData(string dnaString, GenesDB genesDB, string ageSexString = "ma | |
continue; | ||
} | ||
|
||
// Temporary fix for broken Invictus DNA strings which don't have a value for the headgear gene. | ||
// TODO: verify if still require for Invictus version higher than the original pre-hotfix 1.7 | ||
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / Upload development build (linux-x64)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / add_release_archive (linux-x64)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / add_release_archive (osx-arm64)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / Upload development build (win-x64)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / run_test_conversions (https://mega.nz/file/id90lRYD#4OBL6N6_87-Nu28wNssm-O-3jmxli0iFzOtI7XVdN1E)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / run_test_conversions (https://mega.nz/file/TR13kB7D#QWT2yFzoS3rSIu9-EkUEdcc-X8jJnhZdXbJvw9jC-dg)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / add_release_archive (win-x64)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / run_test_conversions (https://mega.nz/file/yd1nAZpB#6pXqexexEAXgE04Kll1XYwz_IhRPr42juVIJQ4uKXM8)
Check warning on line 87 in ImperatorToCK3/Imperator/Characters/PortraitData.cs GitHub Actions / run_test_conversions (https://mega.nz/file/zQ0wDKya#eiFQCiJ2sjTaolAJGnfQ0_0OS2Q1kf48dIGDlrEoJ9I)
|
||
if (gene.Id == "headgear") { | ||
continue; | ||
} | ||
|
||
var geneTemplateByteIndex = geneIndex.Value * 4; | ||
var geneTemplateIndex = (uint)decodedDnaStr[geneTemplateByteIndex]; | ||
var geneTemplateRecessiveIndex = (uint)decodedDnaStr[geneTemplateByteIndex + 2]; | ||
|