Exemple #1
0
        public override Phone.Call.ConversationBehavior OnCallConnected()
        {
            try
            {
                if (Actor.LotHome == null)
                {
                    return Phone.Call.ConversationBehavior.ShakeHead;
                }

                using (Sims.Basic.Party.ThrowHome.SuppressCriteria suppress = new Sims.Basic.Party.ThrowHome.SuppressCriteria())
                {
                    if (new Sims.Basic.Party.ThrowHome().Perform(new GameHitParameters<SimDescriptionObject>(Actor, null, GameObjectHit.NoHit)) != CommonSpace.Options.OptionResult.Failure)
                    {
                        return ConversationBehavior.TalkBriefly;
                    }
                    else
                    {
                        return ConversationBehavior.JustHangUp;
                    }
                }
            }
            catch (ResetException)
            {
                throw;
            }
            catch (Exception e)
            {
                Common.Exception(Actor, Target, e);
                return ConversationBehavior.JustHangUp;
            }
        }
Exemple #2
0
        public override Phone.Call.ConversationBehavior OnCallConnected()
        {
            try
            {
                if (Actor.LotHome == null)
                {
                    return(Phone.Call.ConversationBehavior.ShakeHead);
                }

                using (Sims.Basic.Party.ThrowHome.SuppressCriteria suppress = new Sims.Basic.Party.ThrowHome.SuppressCriteria())
                {
                    if (new Sims.Basic.Party.ThrowHome().Perform(new GameHitParameters <SimDescriptionObject>(Actor, null, GameObjectHit.NoHit)) != CommonSpace.Options.OptionResult.Failure)
                    {
                        return(ConversationBehavior.TalkBriefly);
                    }
                    else
                    {
                        return(ConversationBehavior.JustHangUp);
                    }
                }
            }
            catch (ResetException)
            {
                throw;
            }
            catch (Exception e)
            {
                Common.Exception(Actor, Target, e);
                return(ConversationBehavior.JustHangUp);
            }
        }