mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Spread from dead pawns possible
This commit is contained in:
parent
0d26f1254c
commit
ef838d1fd3
2 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,7 @@ Infections can be
|
||||||
- Chances are adjustable per XML per Gene
|
- Chances are adjustable per XML per Gene
|
||||||
|
|
||||||
By turning their spread off, you effectively have a set of normal negative genes.
|
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???*
|
*Why???*
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,11 @@ namespace RJW_Genes.Genes.Diseases.Patches
|
||||||
ModLog.Debug($"{infected} is immune to genetic diseases");
|
ModLog.Debug($"{infected} is immune to genetic diseases");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (infected.Dead)
|
||||||
|
{
|
||||||
|
// Dead people can spread, but not receive, diseases.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (GeneDef disease in GetGeneticDiseaseGenes(infector)) {
|
foreach (GeneDef disease in GetGeneticDiseaseGenes(infector)) {
|
||||||
ModLog.Debug($"Found genetic disease {disease} in {infector}, trying to infect {infected}");
|
ModLog.Debug($"Found genetic disease {disease} in {infector}, trying to infect {infected}");
|
||||||
|
|
Loading…
Reference in a new issue