mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
fixes involving slaves
This commit is contained in:
parent
7c7a184655
commit
0e8eafafd6
5 changed files with 4 additions and 2 deletions
Binary file not shown.
Binary file not shown.
|
@ -74,7 +74,7 @@ namespace CRIALactation
|
|||
|
||||
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.HasMilkableBreasts(this.parent as Pawn))
|
||||
{
|
||||
|
|
|
@ -24,7 +24,9 @@ namespace CRIALactation
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue