Exemplo n.º 1
0
            protected override void OnTick()
            {
                --Eaten;

                if (Eater?.Deleted != false || Eaten <= 0)
                {
                    Stop();
                    m_ToothAches.Remove(Eater);
                }
                else if (Eater.Map != Map.Internal && Eater.Alive)
                {
                    if (Eaten > 60)
                    {
                        Eater.Say(1077388 + Utility.Random(5));

                        /* ARRGH! My tooth hurts sooo much!
                         * You just can't find a good Britannian dentist these days...
                         * My teeth!
                         * MAKE IT STOP!
                         * AAAH! It feels like someone kicked me in the teeth!
                         */

                        if (Utility.RandomBool() && Eater.Body.IsHuman && !Eater.Mounted)
                        {
                            Eater.Animate(32, 5, 1, true, false, 0);
                        }
                    }
                    else if (Eaten == 60)
                    {
                        Eater.SendLocalizedMessage(1077393); // The extreme pain in your teeth subsides.
                    }
                }
            }
Exemplo n.º 2
0
            protected override void OnTick()
            {
                Eaten--;

                if (Eater == null || Eater.Deleted || Eaten <= 0)
                {
                    Stop();
                    ToothAches.Remove(Eater);
                }
                else if (Eater.Map != Map.Internal && Eater.Alive)
                {
                    if (Eaten > 60)
                    {
                        Eater.Say(1077388 + Utility.Random(5));                            // ARRGH! My tooth hurts sooo much!, etc.

                        if (Utility.RandomBool())
                        {
                            Eater.Animate(32, 5, 1, true, false, 0);
                        }
                    }
                    else if (Eaten == 60)
                    {
                        Eater.SendLocalizedMessage(1077393);                           // The extreme pain in your teeth subsides.
                    }
                }
            }