def has_skill(sim_info: SimInfo, skill_id: int) -> bool: """has_skill(sim_info, skill_id) Determine if a Sim has a Skill. :param sim_info: The Sim to check. :type sim_info: SimInfo :param skill_id: The identifier of the Skill to check. :type skill_id: int :return: True, if the Sim has the skill. False, if the Sim does not. :rtype: bool """ return CommonSimStatisticUtils.has_statistic(sim_info, skill_id)
def has_motive(sim_info: SimInfo, motive_id: int) -> bool: """has_motive(sim_info, motive_id) Determine if a Sim has the specified Motive. .. note:: For example, you could use this to determine if a Sim has a vampire power level. :param sim_info: The Sim to check. :type sim_info: SimInfo :param motive_id: The identifier of the Motive to look for. :type motive_id: int :return: True, if the Sim has the specified Motive. False, if not. :rtype: bool """ mapped_motive_id = CommonSimMotiveUtils._map_motive_id(sim_info, motive_id) return CommonSimStatisticUtils.has_statistic(sim_info, mapped_motive_id)
def has_skill(sim_info: SimInfo, skill_id: int) -> bool: """ Determine if the specified Sim has a Skill. """ return CommonSimStatisticUtils.has_statistic(sim_info, skill_id)
def has_motive(sim_info: SimInfo, motive_id: int) -> bool: """ Determine if a Sim has the specified motive. """ mapped_motive_id = CommonSimMotiveUtils._map_motive_id( sim_info, motive_id) return CommonSimStatisticUtils.has_statistic(sim_info, mapped_motive_id)