def _wickedwhims_enable_nudity_interactions_for_teens():
    if has_game_loaded():
        return
    affordance_manager = TurboResourceUtil.Services.get_instance_manager(
        TurboResourceUtil.ResourceTypes.INTERACTION)
    for affordance_id in NUDITY_AFFORDANCE_LIST:
        affordance_instance = TurboResourceUtil.Services.get_instance_from_manager(
            affordance_manager, affordance_id)
        if affordance_instance is None:
            pass
        if hasattr(affordance_instance,
                   'test_globals') and affordance_instance.test_globals:
            affordance_tests_list = list()
            for test in affordance_instance.test_globals:
                if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                        test) and TurboTunableUtil.Tests.SimInfo.is_age_test(
                            test):
                    test = modify_sim_info_test_ages(
                        test, add_ages=(TurboSimUtil.Age.TEEN, ))
                affordance_tests_list.append(test)
            affordance_instance.test_globals = TestList(affordance_tests_list)
        if hasattr(affordance_instance,
                   'sim_tests') and affordance_instance.sim_tests:
            simtests_group_list = list()
            for test_group in affordance_instance.sim_tests:
                simtests_test_list = list()
                for test in test_group:
                    if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                            test
                    ) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                        test = modify_sim_info_test_ages(
                            test, add_ages=(TurboSimUtil.Age.TEEN, ))
                    simtests_test_list.append(test)
                simtests_group_list.append(tuple(simtests_test_list))
            affordance_instance.sim_tests = CompoundTestList(
                simtests_group_list)
        while hasattr(affordance_instance,
                      'tests') and affordance_instance.tests:
            tests_group_list = list()
            for test_group in affordance_instance.tests:
                test_tests_list = list()
                for test in test_group:
                    if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                            test
                    ) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                        test = modify_sim_info_test_ages(
                            test, add_ages=(TurboSimUtil.Age.TEEN, ))
                    test_tests_list.append(test)
                tests_group_list.append(tuple(test_tests_list))
            affordance_instance.tests = CompoundTestList(tests_group_list)
Example #2
0
def _wickedwhims_allow_skinny_dipping_for_all_age():
    if has_game_loaded():
        return
    snippet_instance = TurboResourceUtil.Services.get_instance(TurboResourceUtil.ResourceTypes.SNIPPET, SKINNY_DIPPING_TESTSET)
    if snippet_instance is None:
        return
    testset_group_list = list()
    for test_group in snippet_instance.test:
        testset_test_list = list()
        for test in test_group:
            if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(test) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                test = modify_sim_info_test_ages(test, add_ages=(TurboSimUtil.Age.BABY, TurboSimUtil.Age.TODDLER, TurboSimUtil.Age.CHILD, TurboSimUtil.Age.TEEN))
            testset_test_list.append(test)
        testset_group_list.append(tuple(testset_test_list))
    snippet_instance.test = CompoundTestList(list(testset_group_list))
def unlock_testsets_for_teens():
    snippet_manager = TurboResourceUtil.Services.get_instance_manager(TurboResourceUtil.ResourceTypes.SNIPPET)
    for snippet_id in TEENS_TEST_SETS:
        snippet_instance = TurboResourceUtil.Services.get_instance_from_manager(snippet_manager, snippet_id)
        if snippet_instance is None:
            pass
        testset_groups_list = list()
        for test_group in snippet_instance.test:
            tests_list = list()
            for test in test_group:
                if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(test) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                    test = modify_sim_info_test_ages(test, add_ages=(TurboSimUtil.Age.TEEN,))
                tests_list.append(test)
            testset_groups_list.append(tuple(tests_list))
        snippet_instance.test = CompoundTestList(list(testset_groups_list))
def _wickedwhims_disable_share_pregnancy_news_interaction_for_teens():
    if has_game_loaded():
        return
    affordance_instance = TurboResourceUtil.Services.get_instance(
        TurboResourceUtil.ResourceTypes.INTERACTION,
        SHARE_PREGNANCY_NEWS_INTERACTION)
    if affordance_instance is None:
        return
    if hasattr(affordance_instance,
               'test_globals') and affordance_instance.test_globals:
        tests_list = list()
        for test in affordance_instance.test_globals:
            if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                    test) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                test = modify_sim_info_test_ages(
                    test, remove_ages=(TurboSimUtil.Age.TEEN, ))
            tests_list.append(test)
        affordance_instance.test_globals = TestList(tests_list)
Example #5
0
def unlock_buffs_for_teens():
    buffs_manager = TurboResourceUtil.Services.get_instance_manager(
        TurboResourceUtil.ResourceTypes.BUFF)
    for buff_id in TEENS_BUFFS_LIST:
        buff_instance = TurboResourceUtil.Services.get_instance_from_manager(
            buffs_manager, buff_id)
        if buff_instance is None:
            pass
        buff_group_tests_list = list()
        for test_group in buff_instance._add_test_set:
            tests_list = list()
            for test in test_group:
                if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                        test) and TurboTunableUtil.Tests.SimInfo.is_age_test(
                            test):
                    test = modify_sim_info_test_ages(
                        test, add_ages=(TurboSimUtil.Age.TEEN, ))
                tests_list.append(test)
            buff_group_tests_list.append(tuple(tests_list))
        buff_instance._add_test_set = CompoundTestList(
            list(buff_group_tests_list))
def unlock_situations_for_teens():
    situation_manager = TurboResourceUtil.Services.get_instance_manager(
        TurboResourceUtil.ResourceTypes.SITUATION)
    for situation_id in ROMANCE_SITUATIONS_LIST:
        situation_instance = TurboResourceUtil.Services.get_instance_from_manager(
            situation_manager, situation_id)
        if situation_instance is None:
            pass
        while hasattr(situation_instance, '_initiating_sim_tests'
                      ) and situation_instance._initiating_sim_tests:
            tests_list = list()
            for test in situation_instance._initiating_sim_tests:
                if TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                        test) and TurboTunableUtil.Tests.SimInfo.is_age_test(
                            test):
                    test = modify_sim_info_test_ages(
                        test,
                        add_ages=(TurboSimUtil.Age.TEEN,
                                  TurboSimUtil.Age.YOUNGADULT,
                                  TurboSimUtil.Age.ADULT,
                                  TurboSimUtil.Age.ELDER))
                tests_list.append(test)
            situation_instance._initiating_sim_tests = TestList(tests_list)
Example #7
0
def remove_romance_age_restrictions(value):
    global HAS_DISABLED_ROMANCE_AGE_RESTRICTION_TESTS
    if value is False or HAS_DISABLED_ROMANCE_AGE_RESTRICTION_TESTS is True:
        return
    affordance_manager = TurboResourceUtil.Services.get_instance_manager(
        TurboResourceUtil.ResourceTypes.INTERACTION)
    snippet_manager = TurboResourceUtil.Services.get_instance_manager(
        TurboResourceUtil.ResourceTypes.SNIPPET)
    default_age_test = TurboResourceUtil.Services.get_instance_from_manager(
        snippet_manager, 100790)
    only_teen_age_test = TurboResourceUtil.Services.get_instance_from_manager(
        snippet_manager, 74830)
    teen_adult_test = TurboResourceUtil.Services.get_instance_from_manager(
        snippet_manager, 16594383779498847541)
    for affordance_id in get_romance_affordances():
        affordance_instance = TurboResourceUtil.Services.get_instance_from_manager(
            affordance_manager, affordance_id)
        if affordance_instance is None:
            pass
        if hasattr(affordance_instance,
                   'test_globals') and affordance_instance.test_globals:
            tests_list = list()
            for test in affordance_instance.test_globals:
                if test is only_teen_age_test:
                    pass
                if test is default_age_test:
                    test = teen_adult_test
                elif TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                        test) and TurboTunableUtil.Tests.SimInfo.is_age_test(
                            test):
                    test = modify_sim_info_test_ages(
                        test,
                        add_ages=(TurboSimUtil.Age.TEEN,
                                  TurboSimUtil.Age.YOUNGADULT,
                                  TurboSimUtil.Age.ADULT,
                                  TurboSimUtil.Age.ELDER))
                tests_list.append(test)
            affordance_instance.test_globals = TestList(tests_list)
        while hasattr(affordance_instance,
                      'tests') and affordance_instance.tests:
            tests_group_list = list()
            for test_group in affordance_instance.tests:
                test_tests_list = list()
                for test in test_group:
                    if test is only_teen_age_test:
                        pass
                    if test is default_age_test:
                        test = teen_adult_test
                    elif TurboTunableUtil.Tests.SimInfo.is_sim_info_test(
                            test
                    ) and TurboTunableUtil.Tests.SimInfo.is_age_test(test):
                        test = modify_sim_info_test_ages(
                            test,
                            add_ages=(TurboSimUtil.Age.TEEN,
                                      TurboSimUtil.Age.YOUNGADULT,
                                      TurboSimUtil.Age.ADULT,
                                      TurboSimUtil.Age.ELDER))
                    test_tests_list.append(test)
                tests_group_list.append(tuple(test_tests_list))
            affordance_instance.tests = CompoundTestList(tests_group_list)
    unlock_buffs_for_teens()
    unlock_testsets_for_teens()
    unlock_sims_filters_for_teens()
    unlock_situations_for_teens()
    disable_duplicate_interactions()
    HAS_DISABLED_ROMANCE_AGE_RESTRICTION_TESTS = True