-
-
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
|
||
if (gene.Id == "headgear") { | ||
continue; | ||
} | ||
|
||
var geneTemplateByteIndex = geneIndex.Value * 4; | ||
var geneTemplateIndex = (uint)decodedDnaStr[geneTemplateByteIndex]; | ||
var geneTemplateRecessiveIndex = (uint)decodedDnaStr[geneTemplateByteIndex + 2]; | ||
|