mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
1.0.5.6
This commit is contained in:
parent
86db33f800
commit
ee897672c9
9 changed files with 30 additions and 45 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -475,7 +475,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
get
|
||||
{
|
||||
return curStageHrs / CurStageIntervalHours;
|
||||
return Mathf.Clamp01(curStageHrs / CurStageIntervalHours);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1340,6 +1340,7 @@ namespace RJW_Menstruation
|
|||
EggDecay();
|
||||
Implant();
|
||||
}
|
||||
|
||||
if (parent.pawn.IsPregnant())
|
||||
{
|
||||
curStageHrs += 1;
|
||||
|
|
|
@ -326,22 +326,22 @@ namespace RJW_Menstruation
|
|||
}
|
||||
}
|
||||
|
||||
if (xxx.has_traits(pawn) && pawn.RaceProps.Humanlike)
|
||||
{
|
||||
foreach (Trait momtrait in pawn.story.traits.allTraits)
|
||||
{
|
||||
if (!RJWPregnancySettings.trait_filtering_enabled || !non_genetic_traits.Contains(momtrait.def.defName))
|
||||
traitpool.Add(momtrait);
|
||||
}
|
||||
}
|
||||
if (father != null && xxx.has_traits(father) && father.RaceProps.Humanlike)
|
||||
{
|
||||
foreach (Trait poptrait in father.story.traits.allTraits)
|
||||
{
|
||||
if (!RJWPregnancySettings.trait_filtering_enabled || !non_genetic_traits.Contains(poptrait.def.defName))
|
||||
traitpool.Add(poptrait);
|
||||
}
|
||||
}
|
||||
//if (xxx.has_traits(pawn) && pawn.RaceProps.Humanlike)
|
||||
//{
|
||||
// foreach (Trait momtrait in pawn.story.traits.allTraits)
|
||||
// {
|
||||
// if (!RJWPregnancySettings.trait_filtering_enabled || !non_genetic_traits.Contains(momtrait.def.defName))
|
||||
// traitpool.Add(momtrait);
|
||||
// }
|
||||
//}
|
||||
//if (father != null && xxx.has_traits(father) && father.RaceProps.Humanlike)
|
||||
//{
|
||||
// foreach (Trait poptrait in father.story.traits.allTraits)
|
||||
// {
|
||||
// if (!RJWPregnancySettings.trait_filtering_enabled || !non_genetic_traits.Contains(poptrait.def.defName))
|
||||
// traitpool.Add(poptrait);
|
||||
// }
|
||||
//}
|
||||
updateTraits(baby, traitpool);
|
||||
|
||||
}
|
||||
|
|
|
@ -9,8 +9,12 @@ namespace RJW_Menstruation
|
|||
[HarmonyPatch(typeof(PregnancyHelper), "impregnate")]
|
||||
public static class impregnate_Patch
|
||||
{
|
||||
public static bool Prefix(Pawn pawn, Pawn partner, xxx.rjwSextype sextype = xxx.rjwSextype.None)
|
||||
public static bool Prefix(SexProps props)
|
||||
{
|
||||
xxx.rjwSextype sextype = props.sexType;
|
||||
Pawn pawn = props.pawn;
|
||||
Pawn partner = props.partner;
|
||||
|
||||
if (sextype == xxx.rjwSextype.Vaginal)
|
||||
{
|
||||
var pawnpartBPR = Genital_Helper.get_genitalsBPR(pawn);
|
||||
|
@ -107,30 +111,6 @@ namespace RJW_Menstruation
|
|||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(JobDriver_Sex), "Orgasm")]
|
||||
public static class Orgasm_Patch
|
||||
{
|
||||
public static void Postfix(JobDriver_Sex __instance, int ___sex_ticks, int ___orgasmstick, Pawn ___pawn, xxx.rjwSextype ___sexType, bool ___usedCondom)
|
||||
{
|
||||
if (___sex_ticks - 1 > ___orgasmstick) //~3s at speed 1
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (___pawn.jobs?.curDriver is JobDriver_SexBaseInitiator)
|
||||
{
|
||||
if (___sexType == xxx.rjwSextype.Vaginal && !___usedCondom)
|
||||
{
|
||||
if (!___pawn.Dead && !__instance.Partner.Dead)
|
||||
{
|
||||
PregnancyHelper.impregnate(___pawn, __instance.Partner, ___sexType);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HarmonyPatch(typeof(Hediff_BasePregnancy), "PostBirth")]
|
||||
public static class RJW_Patch_PostBirth
|
||||
{
|
||||
|
|
|
@ -74,10 +74,9 @@ namespace RJW_Menstruation
|
|||
if (window != null)
|
||||
{
|
||||
List<Pawn> pawns = Find.Selector.SelectedPawns.FindAll(x => x.ShouldShowWombGizmo());
|
||||
if (!pawns.NullOrEmpty() && pawns.Count > 1)
|
||||
if (Input.GetKey(VariousDefOf.OpenStatusWindowKey.MainKey) && !pawns.NullOrEmpty() && pawns.Count > 1)
|
||||
{
|
||||
int index = pawns.IndexOf(window.pawn);
|
||||
|
||||
SoundDefOf.TabOpen.PlayOneShotOnCamera();
|
||||
Pawn newpawn = pawns[(index + 1) % pawns.Count];
|
||||
window.ChangePawn(newpawn, newpawn.GetMenstruationComp());
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace RJW_Menstruation
|
|||
|
||||
public const float progressbarHeight = 2f;
|
||||
|
||||
protected override void DrawIcon(Rect rect, Material buttonMat, GizmoRenderParms parms)
|
||||
public override void DrawIcon(Rect rect, Material buttonMat, GizmoRenderParms parms)
|
||||
{
|
||||
Texture2D badTex = icon;
|
||||
Texture2D overay = icon_overay;
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
Version 1.0.5.6
|
||||
- requires RJW 4.8.0 or later
|
||||
- fixed womb gizmo not worked properly
|
||||
|
||||
Version 1.0.5.5
|
||||
- not compatible with RJW 4.8.0 or later
|
||||
- clicking vagina and anus image will show origin state
|
||||
- fixed loadfolders.xml for other platforms
|
||||
- added load orders
|
||||
|
|
Loading…
Reference in a new issue