Exemplo n.º 1
0
 def on_interaction_start(cls, interaction_instance):
     sim = cls.get_interaction_sim(interaction_instance)
     target = cls.get_interaction_target(interaction_instance)
     sim_skill_level = get_sim_nudity_skill_level(sim)
     target_skill_level = get_sim_nudity_skill_level(target)
     if sim_skill_level > target_skill_level:
         if TurboSimUtil.Sim.is_npc(target):
             apply_nudity_skill_influence(target,
                                          sim_skill_level / 100,
                                          overall_limit=2.5)
         else:
             increase_sim_nudity_skill(target,
                                       sim_skill_level,
                                       extra_fatigue=2.5)
     elif sim_skill_level < target_skill_level:
         if TurboSimUtil.Sim.is_npc(sim):
             apply_nudity_skill_influence(sim,
                                          target_skill_level / 100,
                                          overall_limit=2.5)
         else:
             increase_sim_nudity_skill(sim,
                                       target_skill_level,
                                       extra_fatigue=2.5)
     if TurboSimUtil.Gender.get_gender(sim) in get_sim_preferenced_genders(
             target):
         change_sim_desire_level(target, 5)
     if TurboSimUtil.Gender.get_gender(
             target) in get_sim_preferenced_genders(sim):
         change_sim_desire_level(sim, 5)
     increase_sim_ww_statistic(sim, 'times_talked_exhibitionism')
     increase_sim_ww_statistic(target, 'times_talked_exhibitionism')
     return True
def _wickedwhims_command_simulate_story_progression(output=None):
    for sim_info in TurboManagerUtil.Sim.get_all_sim_info_gen(humans=True,
                                                              pets=False):
        if TurboSimUtil.Age.is_younger_than(sim_info, TurboSimUtil.Age.CHILD):
            pass
        apply_nudity_skill_influence(
            sim_info,
            random.uniform(0, 1) * random.randint(1, 7))
    trigger_story_progression()
    output('Simulated a day of nudity story progression.')
def update_sim_nudity_skill_on_seeing_nudity(sim, target):
    skill_points = _get_sim_nudity_value(
        target, sim) * get_nudity_skill_points_modifier(
            NuditySkillIncreaseReason.SEEING_NUDITY)
    if TurboSimUtil.Age.get_age(
            sim) == TurboSimUtil.Age.CHILD and is_sim_naturist(target):
        apply_nudity_skill_influence(sim, skill_points, overall_limit=200.0)
        return
    increase_sim_nudity_skill(sim,
                              skill_points,
                              extra_fatigue=0.05,
                              reason=NuditySkillIncreaseReason.SEEING_NUDITY)
Exemplo n.º 4
0
def _flash_sim_result(sim, target):
    sim_ev(sim).is_flashing = True
    increase_sim_nudity_skill(sim,
                              get_nudity_skill_points_modifier(
                                  NuditySkillIncreaseReason.FLASHING_BODY),
                              extra_fatigue=5.0)
    is_prefered_gender = TurboSimUtil.Gender.get_gender(
        sim) in get_sim_preferenced_genders(target)
    if is_prefered_gender is True:
        apply_nudity_skill_influence(target, 0.05, overall_limit=6.5)
        change_sim_desire_level(target, 10)
        change_sim_desire_level(sim, 4.5)
    if not has_sim_buff(sim, SimBuff.WW_NUDITY_HAS_FLASHED):
        add_sim_buff(sim, SimBuff.WW_NUDITY_HAS_FLASHED)
Exemplo n.º 5
0
 def on_interaction_start(cls, interaction_instance):
     sim = cls.get_interaction_sim(interaction_instance)
     target = cls.get_interaction_target(interaction_instance)
     if TurboSimUtil.Sim.is_npc(target):
         apply_nudity_skill_influence(target, 0.1, overall_limit=4.1)
     else:
         increase_sim_nudity_skill(
             target,
             get_nudity_skill_points_modifier(
                 NuditySkillIncreaseReason.SOCIAL_COMPLIMENT),
             extra_fatigue=2.5)
     if TurboSimUtil.Gender.get_gender(sim) in get_sim_preferenced_genders(
             target):
         change_sim_desire_level(target, 10)
         change_sim_desire_level(sim, 5)
     increase_sim_ww_statistic(sim, 'times_talked_exhibitionism')
     return True
Exemplo n.º 6
0
 def on_interaction_start(cls, interaction_instance):
     sim = cls.get_interaction_sim(interaction_instance)
     target = cls.get_interaction_target(interaction_instance)
     sim_skill_level = get_sim_nudity_skill_level(sim)
     if TurboSimUtil.Sim.is_npc(target):
         apply_nudity_skill_influence(target,
                                      0.05 * sim_skill_level,
                                      overall_limit=7.1)
         if random.uniform(0, 1) <= 0.1:
             add_sim_trait(target, SimTrait.WW_EXHIBITIONIST)
     else:
         increase_sim_nudity_skill(
             target,
             get_nudity_skill_points_modifier(
                 NuditySkillIncreaseReason.SOCIAL_CONVINCE),
             extra_fatigue=3.1)
     if TurboSimUtil.Gender.get_gender(sim) in get_sim_preferenced_genders(
             target):
         change_sim_desire_level(target, 10)
         change_sim_desire_level(sim, 5)
     increase_sim_ww_statistic(sim, 'times_talked_exhibitionism')
     increase_sim_ww_statistic(target, 'times_talked_exhibitionism')
     return True