# uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\tuningless_interaction.py
# Compiled at: 2017-07-20 01:30:28
# Size of source mod 2**32: 1952 bytes
from sims4.collections import frozendict
from event_testing.tests import TunableTestSet, TunableGlobalTestSet
from interactions.utils.outcome import InteractionOutcome
from sims4.tuning.instances import lock_instance_tunables

def create_tuningless_interaction(affordance, **kwargs):
    locked_fields = dict(basic_reserve_object=None,
      basic_focus=None,
      _forwarding=None,
      allow_from_world=True,
      basic_extras=(),
      _constraints=(frozendict()),
      tests=(TunableTestSet.DEFAULT_LIST),
      test_globals=(TunableGlobalTestSet.DEFAULT_LIST),
      test_autonomous=(TunableTestSet.DEFAULT_LIST),
      _static_commodities=(),
      _false_advertisements=(),
      _hidden_false_advertisements=(),
      _cancelable_by_user=True,
      visible=False,
      simless=False,
      allow_autonomous=False,
      allow_user_directed=False,
      debug=False,
      outcome=(InteractionOutcome()))
    if kwargs:
        locked_fields.update(kwargs)
    lock_instance_tunables(affordance, **locked_fields)


def create_tuningless_superinteraction(affordance):
    create_tuningless_interaction(affordance)
    lock_instance_tunables(affordance, pre_add_autonomy_commodities=None,
      pre_run_autonomy_commodities=None,
      post_guaranteed_autonomy_commodities=None,
      post_run_autonomy_commodities=None,
      super_affordance_compatibility=None,
      basic_content=None,
      outfit_change=None,
      outfit_priority=None,
      joinable=None,
      object_reservation_tests=(TunableTestSet.DEFAULT_LIST),
      ignore_group_socials=False)