Minor Fix for #52, updated docs and a small preview image

This commit is contained in:
Vegapnk 2023-06-18 21:02:31 +02:00
parent 91f2e4a60d
commit f7445f8df7
8 changed files with 21 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RJW-Genes</identifier>
<version>1.2.0</version>
<version>1.2.1</version>
<dependencies>
<li>RimJobWorld</li>
<li>HugsLib</li>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 581 KiB

View File

@ -1,3 +1,10 @@
# 1.2.1
**Fixes**:
- Issue with RJW Changes for Orgasms, #52. Methods were renamed.
- Notes on the Gene Inheritance #51
# 1.2 (11-06-2023)
**Changes:**

Binary file not shown.

View File

@ -42,5 +42,6 @@ Please load this after any mod adding genes, and after the used RJW-Mods (Licent
1. Should not be used with the original RJW_Animal_Gene_Inheritance anymore.
2. There was an issue with other "Male-Only / Female-Only" Mods --- for which we provide our own Genes now.
3. CAI5000 will not crash, but will make *Seduce*-Ability fail. I think same goes for Combat Extended.
4. Alpha Genes "Female / Male Only" Genes might overwrite later Genitalia-Changes and should be avoided in combination with RJW-Genes Features.
5. rjw.sexperience.cumgenes removes fertilin-gain from Cum item - I hope I addressed this by adding a load order but keep me posted (Issue #41)
4. Alpha Genes "Female / Male Only" Genes might overwrite later Genitalia-Changes and should be avoided in combination with RJW-Genes features.
5. rjw.sexperience.cumgenes removes fertilin-gain from Cum item - I hope I addressed this by adding a load order but keep me posted (Issue #41)
6. [Consistent Gene Inheritance](https://steamcommunity.com/sharedfiles/filedetails/?id=2881479142&searchtext=Consistent+Gene+Inheritance) alters inheritance - it messes a bit with the Insect-Caste Logic. Your game will not crash, but the insect xenotypes will be a bit messed up.

View File

@ -12,14 +12,19 @@ using Verse;
namespace RJW_Genes
{
/// <summary>
/// There was a big change with RJW 5.3.6 and I got a new Issue #52 documenting it.
/// Basically, the reroll and orgasm logic was changed.
/// </summary>
[HarmonyPatch(typeof(JobDriver_Sex), nameof(JobDriver_Sex.Roll_Orgasm_Duration_Reset))]
[HarmonyPatch(typeof(JobDriver_Sex), "SetupOrgasmTicks")]
public static class Patch_OrgasmMytosis
{
private const float SEVERITY_INCREASE_PER_ORGASM = 0.075f;
public static void Postfix(JobDriver_Sex __instance, ref int __result)
public static void Postfix(JobDriver_Sex __instance)
{
Pawn orgasmingPawn = __instance.pawn;
if (orgasmingPawn != null && GeneUtility.HasGeneNullCheck(orgasmingPawn, GeneDefOf.rjw_genes_sexual_mytosis) && ! orgasmingPawn.health.hediffSet.HasHediff(HediffDefOf.rjw_genes_mytosis_shock_hediff))
@ -42,7 +47,7 @@ namespace RJW_Genes
else
{
float orgasm_time_reduction = Math.Max(1.0f - mytosisHediff.Severity, 0.1f);
__result = (int)(orgasm_time_reduction * __result);
__instance.sex_ticks = (int) (__instance.sex_ticks * orgasm_time_reduction);
}
}

View File

@ -198,8 +198,7 @@
<Private>False</Private>
</Reference>
<Reference Include="RJWSexperience">
<HintPath>..\..\RJW-Sexperience\1.4\Assemblies\RJWSexperience.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\RJW-Sexperience-1.1.4.0\1.4\Assemblies\RJWSexperience.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine">

View File

@ -34,6 +34,7 @@ Any help is very appreciated, even if it is just pointing me to existing similar
- [] Maybe: Boost pregnancy times of Animals
- [] Maybe: Make it Animal-Fertilin-Dependend
- [] Either: Can only eat meat or cannot eat meat
- [] Gene to prefer hookups of animals that are in a menstrual cycle
Can't help but think about Rexxar Porn now I am a bad person.