def get_progress_toward_max_skill_level(sim_info: SimInfo,
                                         skill_id: int,
                                         add: bool = True) -> float:
     """ Retrieve the amount of progress a Sim has made toward the max level of a Skill.  """
     return CommonSimStatisticUtils.get_statistic_value(sim_info,
                                                        skill_id,
                                                        add=add)
 def _get_motive_level(sim_info: SimInfo,
                       motive_id: CommonMotiveId) -> float:
     motive_id: int = CommonSimMotiveUtils._map_motive_id(
         sim_info, motive_id)
     if motive_id == -1:
         return 0.0
     return CommonSimStatisticUtils.get_statistic_value(sim_info, motive_id)
    def get_progress_toward_max_skill_level(sim_info: SimInfo, skill_id: int, add: bool=True) -> float:
        """get_progress_toward_max_skill_level(sim_info, skill_id, add=True)

        Retrieve the amount of progress a Sim has made toward the max level of a Skill.

        :param sim_info: The Sim to modify.
        :type sim_info: SimInfo
        :param skill_id: The identifier of the Skill to modify.
        :type skill_id: int
        :param add: If True, the skill will be added to the Sim before it is modified.
        :type add: bool, optional
        :return: True, if successful. False, if not.
        :rtype: bool
        """
        return CommonSimStatisticUtils.get_statistic_value(sim_info, skill_id, add=add)
 def _get_motive_level(sim_info: SimInfo, motive_id: int) -> float:
     motive_id = CommonSimMotiveUtils._map_motive_id(sim_info, motive_id)
     return CommonSimStatisticUtils.get_statistic_value(sim_info, motive_id)