mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Bit of a refactor to AddWombGizmos, should be nicer to the Sexperience module
This commit is contained in:
parent
699c91106f
commit
3d34ed1e53
1 changed files with 7 additions and 5 deletions
|
@ -28,14 +28,16 @@ namespace RJW_Menstruation
|
||||||
foreach (Gizmo gizmo in gizmos)
|
foreach (Gizmo gizmo in gizmos)
|
||||||
yield return gizmo;
|
yield return gizmo;
|
||||||
|
|
||||||
foreach (HediffComp_Menstruation comp in __instance.GetMenstruationComps())
|
foreach (Gizmo gizmo in GetMenstruationGizmos(__instance))
|
||||||
foreach (Gizmo gizmo in GetMenstruationGizmos(__instance, comp))
|
|
||||||
yield return gizmo;
|
yield return gizmo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<Gizmo> GetMenstruationGizmos(Pawn pawn, HediffComp_Menstruation comp)
|
public static List<Gizmo> GetMenstruationGizmos(Pawn pawn)
|
||||||
{
|
{
|
||||||
return new List<Gizmo>() { CreateGizmo_WombStatus(pawn, comp) };
|
List<Gizmo> res = new List<Gizmo>();
|
||||||
|
foreach (HediffComp_Menstruation comp in pawn.GetMenstruationComps())
|
||||||
|
res.Add(CreateGizmo_WombStatus(pawn, comp));
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue