Allow pheromones to be disabled in the options

This commit is contained in:
lutepickle 2023-05-09 10:57:49 -07:00
parent 35adcf87ee
commit 28d77ed1fb
6 changed files with 16 additions and 7 deletions

Binary file not shown.

View file

@ -74,7 +74,9 @@
<Option11_Desc_3>Show only image of a fetus after discovered pregnancy.</Option11_Desc_3>
<Option11_Desc_4>Do not show any information about a fetus.</Option11_Desc_4>
<Option12_Label>Enable menopause</Option12_Label>
<Option12_Desc>Enable menopause effect that makes pawn infertile when they run out of eggs&#10;If you have problems with long lived races, turn off this option.</Option12_Desc>
<Option12_Desc>Enable menopause effect that makes pawn infertile when they run out of eggs.&#10;If you have problems with long lived races, turn off this option.</Option12_Desc>
<Option_EnablePheromones_Label>Enable pheromones</Option_EnablePheromones_Label>
<Option_EnablePheromones_Desc>Allow humanlikes in visible estrus to increase the sex drive of nearby humanlike males.</Option_EnablePheromones_Desc>
<Option13_Label>Use multiple pregnancy</Option13_Label>
<Option13_Desc>Use multiple pregnancy instead RJW's default pregnancy&#10;Disable this option if you are in trouble with impregnation&#10;RJW pregnancy should be turned on.</Option13_Desc>
<Option14_Label>Enable hetero ovular twins</Option14_Label>

View file

@ -18,9 +18,9 @@ namespace RJW_Menstruation
public const float CumFertilityDecayRatioDefault = 0.05f;
public const int CumFertilityDecayRatioAdjustDefault = 50;
public const int CycleAccelerationDefault = 6;
public const int ColonistTickIntervalDefault = 2500; // 1 hour
public const int NonColonistTickIntervalDefault = 2500;
public const int AnimalTickIntervalDefault = 2500;
public const int ColonistTickIntervalDefault = GenDate.TicksPerHour;
public const int NonColonistTickIntervalDefault = GenDate.TicksPerHour;
public const int AnimalTickIntervalDefault = GenDate.TicksPerHour;
public const int TickIntervalMinimum = 20;
public const float EnzygoticTwinsChanceDefault = 0.002f;
public const int EnzygoticTwinsChanceAdjustDefault = 2;
@ -57,6 +57,7 @@ namespace RJW_Menstruation
public static bool DrawEggOverlay = true;
public static bool Debug = false;
public static bool EnableMenopause = true;
public static bool EnablePheromones = true;
public static DetailLevel InfoDetail => infoDetail;
public static bool EstrusOverridesHookupSettings = false;
public static float EstrusFuckabilityToHookup = RJWHookupSettings.MinimumFuckabilityToHookup;
@ -74,7 +75,6 @@ namespace RJW_Menstruation
public static bool EnableGatherCumGizmo = true;
public static PawnFlags ShowFlag = PawnFlags.Colonist | PawnFlags.Prisoner;
public static bool UseHybridExtention = true;
public static bool MotherFirst = false;
public static bool AllowShrinkIcon = false;
public static float EggLifespanMultiplier = EggLifespanMultiplierDefault;
public static bool EnableBirthVaginaMorph = false;
@ -92,6 +92,8 @@ namespace RJW_Menstruation
EnableDraftedIcon = true;
EnableGatherCumGizmo = true;
EnableAnimalCycle = false;
EnableMenopause = true;
EnablePheromones = true;
CycleAcceleration = CycleAccelerationDefault;
ColonistTickInterval = ColonistTickIntervalDefault;
NonColonistTickInterval = NonColonistTickIntervalDefault;
@ -107,7 +109,6 @@ namespace RJW_Menstruation
PregnancySource = PregnancyType.MultiplePregnancy;
MaxEnzygoticTwins = MaxEnzygoticTwinsDefault;
BleedingAmount = BleedingAmountDefault;
MotherFirst = false;
MaxBreastIncrementFactor = MaxBreastIncrementFactorDefault;
MaxNippleIncrementFactor= MaxNippleIncrementFactorDefault;
PermanentNippleChange = PermanentNippleChangeDefault;
@ -211,6 +212,7 @@ namespace RJW_Menstruation
Scribe_Values.Look(ref Debug, "Debug", false);
Scribe_Values.Look(ref infoDetail, "InfoDetail", DetailLevel.All);
Scribe_Values.Look(ref EnableMenopause, "EnableMenopause", true);
Scribe_Values.Look(ref EnablePheromones, "EnablePheromones", true);
Scribe_Values.Look(ref EstrusOverridesHookupSettings, "EstrusOverridesHookupSettings", false);
Scribe_Values.Look(ref EstrusFuckabilityToHookup, "EstrusFuckabilityToHookup", EstrusFuckabilityToHookup, true);
Scribe_Values.Look(ref EstrusAttractivenessToHookup, "EstrusAttractivenessToHookup", EstrusAttractivenessToHookup, true);
@ -227,7 +229,6 @@ namespace RJW_Menstruation
Scribe_Values.Look(ref EnableGatherCumGizmo, "EnableGatherCumGizmo", true);
Scribe_Values.Look(ref ShowFlag, "ShowFlag", PawnFlags.Colonist | PawnFlags.Prisoner);
Scribe_Values.Look(ref UseHybridExtention, "UseHybridExtention", true);
Scribe_Values.Look(ref MotherFirst, "MotherFirst", false);
Scribe_Values.Look(ref MaxBreastIncrementFactor, "MaxBreastIncrementFactor", MaxBreastIncrementFactorDefault);
Scribe_Values.Look(ref MaxNippleIncrementFactor, "MaxNippleIncrementFactor", MaxNippleIncrementFactorDefault);
Scribe_Values.Look(ref PermanentNippleChange, "PermanentNippleChange", PermanentNippleChangeDefault);
@ -393,6 +394,8 @@ namespace RJW_Menstruation
listmain.CheckboxLabeled(Translations.Option12_Label, ref Configurations.EnableMenopause, Translations.Option12_Desc);
listmain.CheckboxLabeled(Translations.Option_EnablePheromones_Label, ref Configurations.EnablePheromones, Translations.Option_EnablePheromones_Desc);
listmain.Label(Translations.Option3_Label + " " + Configurations.ImplantationChance * 100 + "%", -1, Translations.Option3_Desc);
Configurations.ImplantationChanceAdjust = (int)listmain.Slider(Configurations.ImplantationChanceAdjust, 0, 1000);
Configurations.ImplantationChance = (float)Configurations.ImplantationChanceAdjust / 100;

View file

@ -31,6 +31,7 @@ namespace RJW_Menstruation
{
try
{
if (!Configurations.EnablePheromones) return;
if (!Pawn.RaceProps.Humanlike) return;
if (!Pawn.IsHashIntervalTick(emitInterval)) return;
if (!Pawn.SpawnedOrAnyParentSpawned) return;

View file

@ -79,6 +79,8 @@ namespace RJW_Menstruation
public static readonly string Option11_Desc_4 = "Option11_Desc_4".Translate();
public static readonly string Option12_Label = "Option12_Label".Translate();
public static readonly string Option12_Desc = "Option12_Desc".Translate();
public static readonly string Option_EnablePheromones_Label = "Option_EnablePheromones_Label".Translate();
public static readonly string Option_EnablePheromones_Desc = "Option_EnablePheromones_Desc".Translate();
public static readonly string Option13_Label = "Option13_Label".Translate();
public static readonly string Option13_Desc = "Option13_Desc".Translate();
public static readonly string Option14_Label = "Option14_Label".Translate();

View file

@ -1,5 +1,6 @@
Version 1.0.9.1
- Add new ideology-related thoughts with the sexperience-ideology mod.
- New pheromone system: Pawns in visible estrus will increase the sex drive of nearby males. Can be disabled in the options.
- Using the egg restoration biosculptor cycle will give a small mood buff.
- Periodic ovulators that don't bleed will properly enter anestrus after their luteal stage.