Spread from dead pawns possible

This commit is contained in:
Vegapnk 2024-07-03 17:07:42 +02:00
parent 0d26f1254c
commit ef838d1fd3
2 changed files with 6 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Infections can be
- Chances are adjustable per XML per Gene
By turning their spread off, you effectively have a set of normal negative genes.
Dead pawns can spread diseases, but cannot receive them. For all you necros out there.
*Why???*

View file

@ -43,6 +43,11 @@ namespace RJW_Genes.Genes.Diseases.Patches
ModLog.Debug($"{infected} is immune to genetic diseases");
return;
}
if (infected.Dead)
{
// Dead people can spread, but not receive, diseases.
return;
}
foreach (GeneDef disease in GetGeneticDiseaseGenes(infector)) {
ModLog.Debug($"Found genetic disease {disease} in {infector}, trying to infect {infected}");