Esempio n. 1
0
        public void OnPreLoad()
        {
            InteractionTuning tuning = Tunings.Inject <FishingSpot, FishAutonomously.Definition, Definition>(true);

            if (tuning != null)
            {
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, false);
                tuning.SetFlags(InteractionTuning.FlagField.DisallowUserDirected, false);

                tuning.Availability.SkillThresholdValue = 0;
            }
        }
Esempio n. 2
0
        public void OnPreLoad()
        {
            Tunings.Inject <Terrain, Sims3.Gameplay.Objects.Fishing.FishHere.Definition, Definition>(true);

            InteractionTuning tuning = Tunings.GetTuning <Terrain, Sims3.Gameplay.Objects.Fishing.FishHere.Definition>();

            if (tuning != null)
            {
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, true);
                tuning.SetFlags(InteractionTuning.FlagField.DisallowUserDirected, true);
            }

            Singleton = new Definition();
        }
Esempio n. 3
0
        public void OnPreLoad()
        {
            InteractionTuning tuning = Tunings.Inject <TimeMachine, TimeMachine.TimeTravel.Definition, Definition>(true);

            if (tuning != null)
            {
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, true);
            }
        }
        public void OnPreLoad()
        {
            InteractionTuning tuning = Tunings.Inject <AncientPortal, AncientPortal.CatchABeam.Definition, Definition>(true);

            if (tuning != null)
            {
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, true);
            }
        }
Esempio n. 5
0
        public static InteractionTuning ResetTuning(InteractionTuning tuning, bool disallowAutonomout, bool disallowUserDirected)
        {
            try
            {
                if (tuning != null)
                {
                    tuning.Availability.Teens  = false;
                    tuning.Availability.Adults = true;
                    tuning.Availability.Elders = true;
                    tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, disallowAutonomout);
                    tuning.SetFlags(InteractionTuning.FlagField.DisallowUserDirected, disallowUserDirected);
                }
            }
            catch (Exception e)
            {
                Common.Exception("ResetTuning", e);
            }

            return(tuning);
        }
Esempio n. 6
0
        public static InteractionTuning ResetTuning(InteractionTuning tuning, bool disallowAutonomous, bool disallowUserDirected)
        {
            try
            {
                if (tuning != null)
                {
                    tuning.Availability.Teens = false;
                    tuning.Availability.Adults = false;
                    tuning.Availability.Elders = false;

                    tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, disallowAutonomous);
                    tuning.SetFlags(InteractionTuning.FlagField.DisallowUserDirected, disallowUserDirected);
                }
            }
            catch (Exception e)
            {
                Common.Exception("ResetTuning", e);
            }

            return tuning;
        }
Esempio n. 7
0
        public void OnPreLoad()
        {
            InteractionTuning tuning = Tunings.Inject <TimePortal, TimePortal.TravelWith.Definition, Definition>(false);

            if (tuning != null)
            {
                tuning.Availability.Teens = true;
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, true);
            }

            sOldSingleton = Singleton;
            Singleton     = new Definition();
        }
Esempio n. 8
0
        public void OnPreLoad()
        {
            InteractionTuning tuning = Tunings.Inject <Phone, Phone.SendWooHootyText.Definition, Definition>(false);

            if (tuning != null)
            {
                tuning.SetFlags(InteractionTuning.FlagField.DisallowAutonomous, false);
                tuning.Availability.Teens = true;
            }

            sOldSingleton = Singleton;
            Singleton     = new Definition();
        }