Add egg restoration thought

This commit is contained in:
lutepickle 2023-05-04 18:03:06 -07:00
parent b2e849eae1
commit d752bcfed4
4 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -1,4 +1,5 @@
using RimWorld;
using System.Linq;
using Verse;
namespace RJW_Menstruation
@ -22,6 +23,8 @@ namespace RJW_Menstruation
comp.RestoreEggs(((CompProperties_BiosculpterPod_EggRestorationCycle)Props).yearsToRestore);
Messages.Message(Translations.EggRestorationCompleted(occupant.Named("PAWN")), occupant, MessageTypeDefOf.PositiveEvent);
if (occupant.GetMenstruationComps().Any())
occupant.needs.mood?.thoughts?.memories?.TryGainMemoryFast(VariousDefOf.EggRestorationReceived);
}
}
}

View File

@ -39,6 +39,7 @@ namespace RJW_Menstruation
public static readonly ThoughtDef UnwantedPregnancyMild = DefDatabase<ThoughtDef>.GetNamed("UnwantedPregnancyMild");
public static readonly ThoughtDef TookContraceptivePill = DefDatabase<ThoughtDef>.GetNamed("TookContraceptivePill");
public static readonly ThoughtDef HateTookContraceptivePill = DefDatabase<ThoughtDef>.GetNamed("HateTookContraceptivePill");
public static readonly ThoughtDef EggRestorationReceived = DefDatabase<ThoughtDef>.GetNamed("EggRestorationReceived");
public static readonly CompProperties_Menstruation HumanVaginaCompProperties = (CompProperties_Menstruation)Genital_Helper.average_vagina.comps.FirstOrDefault(x => x is CompProperties_Menstruation);
public static readonly KeyBindingDef OpenStatusWindowKey = DefDatabase<KeyBindingDef>.GetNamed("OpenStatusWindow");
public static readonly RecordDef AmountofCreampied = DefDatabase<RecordDef>.GetNamed("AmountofCreampied");

View File

@ -1,5 +1,6 @@
Version 1.0.9.1
- Add new ideology-related thoughts with the sexperience-ideology mod
- Add new ideology-related thoughts with the sexperience-ideology mod.
- Using the egg restoration biosculptor cycle will give a small mood buff.
Version 1.0.9.0
- Fix errors when opening the womb dialog of some low fertility pawns.