1.5 Update by A Flock of Birds

This commit is contained in:
a flock of birds 2024-06-21 02:36:21 +00:00 committed by c0ffeeeeeeee
parent d24eb8c4a2
commit 1bc56f65ce
11 changed files with 28 additions and 20 deletions

View file

@ -13,7 +13,7 @@ namespace CRIALactation
public class PreceptComp_Lactation : PreceptComp
{
public override void Notify_MemberGenerated(Pawn pawn, Precept precept, bool newborn)
public override void Notify_MemberGenerated(Pawn pawn, Precept precept, bool newborn, bool ignoreApparel = false)
{
if (newborn) return;
@ -30,7 +30,5 @@ namespace CRIALactation
}
}
}
}
}

View file

@ -21,7 +21,7 @@ namespace CRIALactation
public override bool ShouldSkip(Pawn pawn, bool forced = false)
{
List<Pawn> list = pawn.Map.mapPawns.AllPawnsSpawned;
IReadOnlyList<Pawn> list = pawn.Map.mapPawns.AllPawnsSpawned;
for(int i = 0; i < list.Count; i++)
{
if(LactationUtility.isMassageable(list[i]))