Пример #1
0
        protected bool ProgressPrivateEye(Occupation occupation)
        {
            if (!Test(Sim.CreatedSim, PoliceStation.LowLevelPoliceWork.Singleton))
            {
                PoliceStation.LowLevelPoliceWork interaction = Sim.CreatedSim.InteractionQueue.GetCurrentInteraction() as PoliceStation.LowLevelPoliceWork;
                if (interaction != null)
                {
                    if (interaction.CurrentTone == null)
                    {
                        List <ITone> allTones = new List <ITone>();

                        foreach (InteractionToneDisplay tone in interaction.AvailableTonesForDisplay())
                        {
                            allTones.Add(tone.InteractionTone);
                        }

                        string name = null;
                        if (CareerToneScenario.SetTone(interaction, allTones, ref name))
                        {
                            IncStat("Private Eye Tone");
                        }
                    }
                }

                return(true);
            }
            ;

            RabbitHole hole = ManagerSituation.FindRabbitHole(RabbitHoleType.PoliceStation);

            if (hole == null)
            {
                IncStat("No Police Station");
                return(false);
            }

            return(Situations.PushInteraction <RabbitHole>(this, Sim, hole, PoliceStation.LowLevelPoliceWork.Singleton));
        }
Пример #2
0
 protected CareerToneScenario(CareerToneScenario scenario)
     : base(scenario)
 {
     mTone = scenario.mTone;
 }