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
|
@ -1,14 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class DiseaseGene : Gene
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -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