Hardened Orgasmic Mytosis a bit, fixes (?) #95

This commit is contained in:
Vegapnk 2024-06-26 18:26:10 +02:00
parent 77b81d28cc
commit e13c00ce01
3 changed files with 8 additions and 1 deletions

View file

@ -29,6 +29,8 @@
- Youth Fountain cannot youth on masturbation anymore (#99)
- Documented the HasActiveGene Error Message (#104)
- 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**:

View file

@ -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);

View file

@ -166,6 +166,7 @@
<Compile Include="Genes\Life_Force\UI\GeneGizmo_ResourceLifeForce.cs" />
<Compile Include="Genes\Patches\LustFeeding.cs" />
<Compile Include="Genes\Patches\MultiplePregnancies.cs" />
<Compile Include="Genes\Patches\Patch_Asexual_CanRape.cs" />
<Compile Include="Genes\Patch_AddNotifyOnGeneration.cs" />
<Compile Include="Genes\Quirks\Defs\QirkExtension.cs" />
<Compile Include="Genes\Quirks\QuirkPatcher.cs" />