Ejemplo n.º 1
0
        public override void OnSingleClick(Mobile from)
        {
            string JuiceType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Farms", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Bottle of Juice");
                }
            }
            else
            {
                this.LabelTo(from, "{0} Farms", this.Name);
            }
            JuiceType = JuicingResources.GetName(m_Variety);
            if (m_Quality == JuiceQuality.Exceptional)
            {
                this.LabelTo(from, "Premium {0} Juice", JuiceType);
            }
            else
            {
                this.LabelTo(from, "{0} Juice", JuiceType);
            }
        }
Ejemplo n.º 2
0
        public override void AddNameProperties(ObjectPropertyList list)
        {
            base.AddNameProperties(list);
            string JuiceType;

            JuiceType = JuicingResources.GetName(m_Variety);
            if (m_Quality == JuiceQuality.Exceptional)
            {
                list.Add(1060847, "Premium\t{0}", JuiceType);
            }
            else
            {
                list.Add(1060847, "\t{0}", JuiceType);
            }
        }
Ejemplo n.º 3
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            string JuiceType;

            JuiceType = JuicingResources.GetName(m_Variety);
            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    list.Add(m_Crafter.Name + " Farms");
                }
                else
                {
                    list.Add("Bottle of Juice");
                }
            }
            else
            {
                list.Add(this.Name + " Farms");
            }
        }
Ejemplo n.º 4
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            int    number;
            string JuiceType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Farms", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Juice");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }

            JuiceType = JuicingResources.GetName(m_Variety);

            if (m_Quality == JuiceQuality.Exceptional)
            {
                this.LabelTo(from, "Fresh {0}", JuiceType);
            }
            else
            {
                this.LabelTo(from, "{0}", JuiceType);
            }

            if (m_Held <= 0)
            {
                number = 502246;                 // The keg is empty.
            }
            else if (m_Held < 5)
            {
                number = 502248;                 // The keg is nearly empty.
            }
            else if (m_Held < 10)
            {
                number = 502249;                 // The keg is not very full.
            }
            else if (m_Held < 18)
            {
                number = 502250;                 // The keg is about one quarter full.
            }
            else if (m_Held < 25)
            {
                number = 502251;                 // The keg is about one third full.
            }
            else if (m_Held < 32)
            {
                number = 502252;                 // The keg is almost half full.
            }
            else if (m_Held < 38)
            {
                number = 502254;                 // The keg is approximately half full.
            }
            else if (m_Held < 45)
            {
                number = 502253;                 // The keg is more than half full.
            }
            else if (m_Held < 56)
            {
                number = 502255;                 // The keg is about three quarters full.
            }
            else if (m_Held < 64)
            {
                number = 502256;                 // The keg is very full.
            }
            else if (m_Held < 75)
            {
                number = 502257;                 // The liquid is almost to the top of the keg.
            }
            else
            {
                number = 502258;                 // The keg is completely full.
            }
            this.LabelTo(from, number);
        }
Ejemplo n.º 5
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            int    number;
            string JuiceType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Farms", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Juice");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }
            JuiceType = JuicingResources.GetName(m_Variety);
            if (m_Quality == JuiceQuality.Exceptional)
            {
                this.LabelTo(from, "Premium {0}", JuiceType);
            }
            else
            {
                this.LabelTo(from, "{0}", JuiceType);
            }
            if (m_Held <= 0)
            {
                number = 502246;
            }
            else if (m_Held < 5)
            {
                number = 502248;
            }
            else if (m_Held < 10)
            {
                number = 502249;
            }
            else if (m_Held < 18)
            {
                number = 502250;
            }
            else if (m_Held < 25)
            {
                number = 502251;
            }
            else if (m_Held < 32)
            {
                number = 502252;
            }
            else if (m_Held < 38)
            {
                number = 502254;
            }
            else if (m_Held < 45)
            {
                number = 502253;
            }
            else if (m_Held < 56)
            {
                number = 502255;
            }
            else if (m_Held < 64)
            {
                number = 502256;
            }
            else if (m_Held < 75)
            {
                number = 502257;
            }
            else
            {
                number = 502258;
            }
            this.LabelTo(from, number);
        }