mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Hardened Orgasmic Mytosis a bit, fixes (?) #95
This commit is contained in:
		
							parent
							
								
									77b81d28cc
								
							
						
					
					
						commit
						e13c00ce01
					
				
					 3 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -31,7 +31,9 @@ namespace RJW_Genes
 | 
			
		|||
			Pawn orgasmingPawn = __instance.pawn;
 | 
			
		||||
            bool hasPollutedMytosis = false;
 | 
			
		||||
 | 
			
		||||
            if (orgasmingPawn != null && (GeneUtility.HasGeneNullCheck(orgasmingPawn, GeneDefOf.rjw_genes_sexual_mytosis) || hasPollutedMytosis) && ! orgasmingPawn.health.hediffSet.HasHediff(HediffDefOf.rjw_genes_mytosis_shock_hediff))
 | 
			
		||||
            if (orgasmingPawn == null || orgasmingPawn.genes == null) { return; }
 | 
			
		||||
 | 
			
		||||
            if ((GeneUtility.HasGeneNullCheck(orgasmingPawn, GeneDefOf.rjw_genes_sexual_mytosis) || hasPollutedMytosis) && ! orgasmingPawn.health.hediffSet.HasHediff(HediffDefOf.rjw_genes_mytosis_shock_hediff))
 | 
			
		||||
			{
 | 
			
		||||
				var mytosisHediff = GetOrgasmMytosisHediff(orgasmingPawn);
 | 
			
		||||
				mytosisHediff.Severity += SEVERITY_INCREASE_PER_ORGASM;
 | 
			
		||||
| 
						 | 
				
			
			@ -148,6 +150,8 @@ namespace RJW_Genes
 | 
			
		|||
            copy.style = CopyStyleTracker(copy, toMultiply.style);
 | 
			
		||||
            copy.story = CopyStoryTracker(copy, toMultiply.story);
 | 
			
		||||
 | 
			
		||||
            copy.genes.xenotypeName = toMultiply.genes.xenotypeName;
 | 
			
		||||
            copy.story.favoriteColor = toMultiply.story.favoriteColor;
 | 
			
		||||
 | 
			
		||||
            Find.LetterStack.ReceiveLetter("Orgasmic Mytosis", $"{toMultiply.NameShortColored} performed mytosis on orgasm! The pawn and its clone entered a regenerative state.",
 | 
			
		||||
                RimWorld.LetterDefOf.NeutralEvent, copy);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue