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
				
			
		| 
						 | 
					@ -29,6 +29,8 @@
 | 
				
			||||||
- Youth Fountain cannot youth on masturbation anymore (#99)
 | 
					- Youth Fountain cannot youth on masturbation anymore (#99)
 | 
				
			||||||
- Documented the HasActiveGene Error Message (#104)
 | 
					- Documented the HasActiveGene Error Message (#104)
 | 
				
			||||||
- Pawns with "rjw_genes_no_sexneed" wont go raping (or atleast way less, #100)
 | 
					- Pawns with "rjw_genes_no_sexneed" wont go raping (or atleast way less, #100)
 | 
				
			||||||
 | 
					- Extra Nullcheck for Genes in Orgasmic Mytosis (#95)
 | 
				
			||||||
 | 
					- Orgasmic Mytosis Pawns *should* inherit the Xenotypename and favorite colour now 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Changes**:
 | 
					**Changes**:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,9 @@ namespace RJW_Genes
 | 
				
			||||||
			Pawn orgasmingPawn = __instance.pawn;
 | 
								Pawn orgasmingPawn = __instance.pawn;
 | 
				
			||||||
            bool hasPollutedMytosis = false;
 | 
					            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);
 | 
									var mytosisHediff = GetOrgasmMytosisHediff(orgasmingPawn);
 | 
				
			||||||
				mytosisHediff.Severity += SEVERITY_INCREASE_PER_ORGASM;
 | 
									mytosisHediff.Severity += SEVERITY_INCREASE_PER_ORGASM;
 | 
				
			||||||
| 
						 | 
					@ -148,6 +150,8 @@ namespace RJW_Genes
 | 
				
			||||||
            copy.style = CopyStyleTracker(copy, toMultiply.style);
 | 
					            copy.style = CopyStyleTracker(copy, toMultiply.style);
 | 
				
			||||||
            copy.story = CopyStoryTracker(copy, toMultiply.story);
 | 
					            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.",
 | 
					            Find.LetterStack.ReceiveLetter("Orgasmic Mytosis", $"{toMultiply.NameShortColored} performed mytosis on orgasm! The pawn and its clone entered a regenerative state.",
 | 
				
			||||||
                RimWorld.LetterDefOf.NeutralEvent, copy);
 | 
					                RimWorld.LetterDefOf.NeutralEvent, copy);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -166,6 +166,7 @@
 | 
				
			||||||
    <Compile Include="Genes\Life_Force\UI\GeneGizmo_ResourceLifeForce.cs" />
 | 
					    <Compile Include="Genes\Life_Force\UI\GeneGizmo_ResourceLifeForce.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Patches\LustFeeding.cs" />
 | 
					    <Compile Include="Genes\Patches\LustFeeding.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Patches\MultiplePregnancies.cs" />
 | 
					    <Compile Include="Genes\Patches\MultiplePregnancies.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Genes\Patches\Patch_Asexual_CanRape.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Patch_AddNotifyOnGeneration.cs" />
 | 
					    <Compile Include="Genes\Patch_AddNotifyOnGeneration.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Quirks\Defs\QirkExtension.cs" />
 | 
					    <Compile Include="Genes\Quirks\Defs\QirkExtension.cs" />
 | 
				
			||||||
    <Compile Include="Genes\Quirks\QuirkPatcher.cs" />
 | 
					    <Compile Include="Genes\Quirks\QuirkPatcher.cs" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue