예제 #1
0
 def clear_pregnancy(sim_info: SimInfo) -> bool:
     """ Clear the pregnancy status of a Sim. """
     pregnancy_tracker = CommonSimPregnancyUtils._get_pregnancy_tracker(
         sim_info)
     if pregnancy_tracker is None:
         return False
     sim_info.pregnancy_tracker.clear_pregnancy()
     CommonSimStatisticUtils.remove_statistic(sim_info,
                                              CommonStatisticId.PREGNANCY)
     return True
    def clear_pregnancy(sim_info: SimInfo) -> bool:
        """clear_pregnancy(sim_info)

        Clear the pregnancy status of a Sim.

        :param sim_info: The Sim being cleared.
        :type sim_info: SimInfo
        :return: True, if successful. False, if not.
        :rtype: bool
        """
        pregnancy_tracker = CommonSimPregnancyUtils._get_pregnancy_tracker(
            sim_info)
        if pregnancy_tracker is None:
            return False
        sim_info.pregnancy_tracker.clear_pregnancy()
        CommonSimStatisticUtils.remove_statistic(sim_info,
                                                 CommonStatisticId.PREGNANCY)
        return True
    def remove_skill(sim_info: SimInfo, skill_id: int) -> bool:
        """remove_skill(sim_info, skill_id)

        Remove a Skill from the specified Sim.

        :param sim_info: The Sim to modify.
        :type sim_info: SimInfo
        :param skill_id: The identifier of the Skill to remove.
        :type skill_id: int
        :return: True, if the skill was removed successfully. False, if not.
        :rtype: bool
        """
        return CommonSimStatisticUtils.remove_statistic(sim_info, skill_id)
 def remove_skill(sim_info: SimInfo, skill_id: int) -> bool:
     """ Remove a Skill from the specified Sim. """
     return CommonSimStatisticUtils.remove_statistic(sim_info, skill_id)