fixes involving slaves

This commit is contained in:
c0ffee12 2021-08-01 16:17:04 -07:00
parent 7c7a184655
commit 0e8eafafd6
5 changed files with 4 additions and 2 deletions

View file

@ -74,7 +74,7 @@ namespace CRIALactation
public override IEnumerable<FloatMenuOption> CompFloatMenuOptions(Pawn pawn) public override IEnumerable<FloatMenuOption> CompFloatMenuOptions(Pawn pawn)
{ {
if (pawn != this.parent as Pawn) yield break; if (pawn != this.parent as Pawn && !((this.parent as Pawn).IsSlaveOfColony || (this.parent as Pawn).IsPrisonerOfColony)) yield break;
if (LactationUtility.IsLactating(pawn)) yield break; if (LactationUtility.IsLactating(pawn)) yield break;
if(LactationUtility.HasMilkableBreasts(this.parent as Pawn)) if(LactationUtility.HasMilkableBreasts(this.parent as Pawn))
{ {

View file

@ -24,7 +24,9 @@ namespace CRIALactation
public static bool HasMilkableBreasts(Pawn p) public static bool HasMilkableBreasts(Pawn p)
{ {
if (Genital_Helper.has_breasts(p) && !Genital_Helper.has_male_breasts(p)) if (p.TryGetComp<CompMilkableHuman>() == null) return false;
if (Genital_Helper.has_breasts(p) && (MilkBase.flatChestGivesMilk || !Genital_Helper.has_male_breasts(p)))
{ {
return true; return true;
} }

Binary file not shown.