mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Add state to hediff tooltip, and time to next state in debug tooltip
This commit is contained in:
parent
f99d833e71
commit
8752aa1437
4 changed files with 39 additions and 0 deletions
Binary file not shown.
|
@ -744,6 +744,38 @@ namespace RJW_Menstruation
|
||||||
base.CompPostPostRemoved();
|
base.CompPostPostRemoved();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string CompTipStringExtra
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
StringBuilder tip = new StringBuilder();
|
||||||
|
tip.Append(Translations.Dialog_WombInfo01);
|
||||||
|
tip.Append(": ");
|
||||||
|
tip.Append(GetCurStageLabel);
|
||||||
|
string fertInfo = GetFertilizingInfo;
|
||||||
|
if(CurrentVisibleStage == Stage.Luteal && fertInfo.Length > 0)
|
||||||
|
{
|
||||||
|
tip.AppendLine();
|
||||||
|
tip.Append(fertInfo);
|
||||||
|
}
|
||||||
|
return tip.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual int HoursToNextStage()
|
||||||
|
{
|
||||||
|
return Math.Max(0,(currentIntervalHours - curStageHrs) / Configurations.CycleAcceleration);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string CompDebugString()
|
||||||
|
{
|
||||||
|
if (curStage == Stage.None || curStage == Stage.Infertile || curStage == Stage.Pregnant) return base.CompDebugString();
|
||||||
|
StringBuilder debugString = new StringBuilder();
|
||||||
|
debugString.Append($"Time to next state: ");
|
||||||
|
debugString.Append(GenDate.ToStringTicksToPeriod(HoursToNextStage() * GenDate.TicksPerHour));
|
||||||
|
return debugString.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get fluid in womb that not a cum
|
/// Get fluid in womb that not a cum
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -57,6 +57,12 @@ namespace RJW_Menstruation
|
||||||
Scribe_Values.Look(ref averageCycleIntervalHours, "averageCycleIntervalHours", averageCycleIntervalHours, true);
|
Scribe_Values.Look(ref averageCycleIntervalHours, "averageCycleIntervalHours", averageCycleIntervalHours, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override int HoursToNextStage()
|
||||||
|
{
|
||||||
|
if (curStage == Stage.Anestrus && hoursToNextCycle > 0) return hoursToNextCycle / Configurations.CycleAcceleration;
|
||||||
|
else return base.HoursToNextStage();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void BleedingAction()
|
protected override void BleedingAction()
|
||||||
{
|
{
|
||||||
if (curStageHrs >= currentIntervalHours)
|
if (curStageHrs >= currentIntervalHours)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Version 1.0.8.7
|
Version 1.0.8.7
|
||||||
- Fix missing texture when using Milkable Colonists.
|
- Fix missing texture when using Milkable Colonists.
|
||||||
- Canine vaginas now use the new periodic ovulator cycle.
|
- Canine vaginas now use the new periodic ovulator cycle.
|
||||||
|
- Hovering over a vagina hediff will show the current state in the tooltip.
|
||||||
|
|
||||||
Version 1.0.8.6
|
Version 1.0.8.6
|
||||||
- Updated Traditional Chinese translation by Hydrogen.
|
- Updated Traditional Chinese translation by Hydrogen.
|
||||||
|
|
Loading…
Reference in a new issue