mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added a check for masturbation, fixes #99
This commit is contained in:
parent
daee7c747f
commit
0c139f2eff
5 changed files with 17 additions and 4 deletions
|
@ -82,13 +82,13 @@
|
||||||
<defName>rjw_genes_mating_call</defName>
|
<defName>rjw_genes_mating_call</defName>
|
||||||
<label>Mating Call</label>
|
<label>Mating Call</label>
|
||||||
<description>This gene allows to call nearby animals and invite them for mating.</description>
|
<description>This gene allows to call nearby animals and invite them for mating.</description>
|
||||||
<iconPath>Genes/Icons/Animal_Mating_Call</iconPath>
|
<iconPath>Genes/Icons/RJW_Genes_Mating_Call</iconPath>
|
||||||
<displayOrderInCategory>65</displayOrderInCategory>
|
<displayOrderInCategory>65</displayOrderInCategory>
|
||||||
<abilities>
|
<abilities>
|
||||||
<li>rjw_genes_ability_mating_call</li>
|
<li>rjw_genes_ability_mating_call</li>
|
||||||
</abilities>
|
</abilities>
|
||||||
<descriptionHyperlinks>
|
<descriptionHyperlinks>
|
||||||
<AbilityDef>RJW_Genes_Mating_Call</AbilityDef>
|
<AbilityDef>rjw_genes_ability_mating_call</AbilityDef>
|
||||||
</descriptionHyperlinks>
|
</descriptionHyperlinks>
|
||||||
<biostatCpx>2</biostatCpx>
|
<biostatCpx>2</biostatCpx>
|
||||||
<biostatMet>-1</biostatMet>
|
<biostatMet>-1</biostatMet>
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace RJW_Genes
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This Patch handles the changes to Fathers / Mothers when dealing with Femboys and Male/Male Pregnancies.
|
/// This Patch handles the changes to Fathers / Mothers when dealing with Femboys and Male/Male Pregnancies.
|
||||||
|
///
|
||||||
|
/// This is related to
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HarmonyPatch(typeof(ParentRelationUtility))]
|
[HarmonyPatch(typeof(ParentRelationUtility))]
|
||||||
public class Patch_ParentRelationUtility_GetParents
|
public class Patch_ParentRelationUtility_GetParents
|
||||||
|
|
|
@ -31,6 +31,12 @@ namespace RJW_Genes.Genes.Special
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (props.pawn == props.partner || props.sexType == xxx.rjwSextype.Masturbation || props.sexType == xxx.rjwSextype.None)
|
||||||
|
{
|
||||||
|
// This case was reported but is a bit strange, I hardened it after reports in #99
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Pawn pawn = props.pawn;
|
Pawn pawn = props.pawn;
|
||||||
Pawn partner = props.partner;
|
Pawn partner = props.partner;
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,12 @@ namespace RJW_Genes.Genes.Special
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (props.pawn == props.partner || props.sexType == xxx.rjwSextype.Masturbation || props.sexType == xxx.rjwSextype.None)
|
||||||
|
{
|
||||||
|
// This case was reported but is a bit strange, I hardened it after reports in #99
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (GeneUtility.IsYouthFountain(props.pawn))
|
if (GeneUtility.IsYouthFountain(props.pawn))
|
||||||
{
|
{
|
||||||
ChangeAgeForPawn(props.partner, props.pawn);
|
ChangeAgeForPawn(props.partner, props.pawn);
|
||||||
|
|
|
@ -218,8 +218,7 @@
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="RJWSexperience">
|
<Reference Include="RJWSexperience">
|
||||||
<HintPath>..\..\rjw-sexperience-master\1.5\Assemblies\RJWSexperience.dll</HintPath>
|
<HintPath>..\..\rjw-sexperience\1.5\Assemblies\RJWSexperience.dll</HintPath>
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue