public static int NumSimsIncludingPregnancy(Household house, ref int humanCount, ref int petCount) { if (house == null) { return(0); } int result = NumSimsIncludingPregnancy(house.AllSimDescriptions, ref humanCount, ref petCount); if (house.IsTravelHousehold) { int outworldSimCount, outworldPetCount; GameStates.GetNumHouseholdMembersSimsAndPetsNotInWorldCountingPregnant(out outworldSimCount, out outworldPetCount); humanCount += outworldSimCount; petCount += outworldPetCount; } return(result); }