mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Womb cleaning spams job if no bucket on the map
This commit is contained in:
parent
3ae66bd4a6
commit
d5d5dbd77c
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ namespace RJW_Menstruation.Sexperience
|
||||||
public static bool HasJobOnThing(Pawn pawn, Thing t, bool forced, ref bool __result)
|
public static bool HasJobOnThing(Pawn pawn, Thing t, bool forced, ref bool __result)
|
||||||
{
|
{
|
||||||
HediffComp_Menstruation comp = pawn.GetMenstruationComp();
|
HediffComp_Menstruation comp = pawn.GetMenstruationComp();
|
||||||
if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f)
|
if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f && pawn.Map.listerBuildings.ColonistsHaveBuilding(VariousDefOf.CumBucket))
|
||||||
{
|
{
|
||||||
__result = true;
|
__result = true;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -12,6 +12,6 @@ namespace RJW_Menstruation.Sexperience
|
||||||
|
|
||||||
public static readonly JobDef VaginaWashingwithBucket = DefDatabase<JobDef>.GetNamed("VaginaWashingwithBucket");
|
public static readonly JobDef VaginaWashingwithBucket = DefDatabase<JobDef>.GetNamed("VaginaWashingwithBucket");
|
||||||
public static readonly ThingDef GatheredCumMixture = DefDatabase<ThingDef>.GetNamed("GatheredCumMixture");
|
public static readonly ThingDef GatheredCumMixture = DefDatabase<ThingDef>.GetNamed("GatheredCumMixture");
|
||||||
|
public static readonly ThingDef CumBucket = DefDatabase<ThingDef>.GetNamed("CumBucket");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue