mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Removed the DiseaseGene
This commit is contained in:
parent
bccd258d13
commit
c90c9e2c02
4 changed files with 5 additions and 23 deletions
|
@ -87,7 +87,9 @@ namespace RJW_Genes.Genes.Diseases.Patches
|
|||
|
||||
private static bool IsGeneticDiseaseGene(GeneDef geneDef)
|
||||
{
|
||||
return geneDef.geneClass.FullName.Contains("DiseaseGene");
|
||||
if (geneDef == null) return false;
|
||||
GeneticDiseaseExtension diseaseExt = geneDef.GetModExtension<GeneticDiseaseExtension>();
|
||||
return diseaseExt != null;
|
||||
}
|
||||
|
||||
private static float LookupDiseaseInfectionChance(GeneDef geneDef)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue