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
				
			
		| 
						 | 
				
			
			@ -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}");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue