mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Add debug action to remove eggs, auto-remove eggs on setting follicular or bleeding
This commit is contained in:
parent
802fbbe3ca
commit
8f1c2eceb3
3 changed files with 18 additions and 0 deletions
Binary file not shown.
|
@ -10,7 +10,10 @@ namespace RJW_Menstruation
|
|||
private static void SetFollicular(Pawn p)
|
||||
{
|
||||
foreach (HediffComp_Menstruation comp in p.GetMenstruationComps())
|
||||
{
|
||||
comp.GoNextStage(HediffComp_Menstruation.Stage.Follicular);
|
||||
comp.RemoveAllEggs();
|
||||
}
|
||||
Messages.Message($"{p} is now follicular", p, MessageTypeDefOf.NeutralEvent, false);
|
||||
}
|
||||
|
||||
|
@ -34,7 +37,10 @@ namespace RJW_Menstruation
|
|||
private static void SetBleeding(Pawn p)
|
||||
{
|
||||
foreach (HediffComp_Menstruation comp in p.GetMenstruationComps())
|
||||
{
|
||||
comp.GoNextStage(HediffComp_Menstruation.Stage.Bleeding);
|
||||
comp.RemoveAllEggs();
|
||||
}
|
||||
Messages.Message($"{p} is now bleeding", p, MessageTypeDefOf.NeutralEvent, false);
|
||||
}
|
||||
/*
|
||||
|
@ -57,6 +63,13 @@ namespace RJW_Menstruation
|
|||
comp.RemoveAllCums();
|
||||
Messages.Message($"All cum removed from {p}'s womb", p, MessageTypeDefOf.NeutralEvent, false);
|
||||
}
|
||||
[DebugAction("RJW Menstruation", "Remove all eggs from pawn's womb", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
|
||||
private static void RemoveEggs(Pawn p)
|
||||
{
|
||||
foreach (HediffComp_Menstruation comp in p.GetMenstruationComps())
|
||||
comp.RemoveAllEggs();
|
||||
Messages.Message($"All eggs removed from {p}'s womb", p, MessageTypeDefOf.NeutralEvent, false);
|
||||
}
|
||||
[DebugAction("RJW Menstruation", "Add egg to pawn's next ovulation", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
|
||||
private static void AddEgg(Pawn p)
|
||||
{
|
||||
|
|
|
@ -1143,6 +1143,11 @@ namespace RJW_Menstruation
|
|||
cums.Clear();
|
||||
}
|
||||
|
||||
public void RemoveAllEggs()
|
||||
{
|
||||
eggs.Clear();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fertilize eggs and return the result
|
||||
|
|
Loading…
Reference in a new issue