public override void OnSingleClick(Mobile from)
        {
            string meadType;

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

            meadType = BrewingResources.GetName(m_Variety);

            if (m_Quality == MeadQuality.Exceptional)
            {
                this.LabelTo(from, "Black Label {0} Mead", meadType);
            }
            else
            {
                this.LabelTo(from, "{0}", meadType);
            }
        }
Esempio n. 2
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, "{0}\t{1}", Amount, "Bunches of " + BrewingResources.GetName(m_Variety) + " Cones");                 // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add("Bunch of " + BrewingResources.GetName(m_Variety) + " Cones");
     }
 }
Esempio n. 3
0
 public override void OnSingleClick(Mobile from)
 {
     if (Amount > 1)
     {
         LabelTo(from, "{0} Hops Bunches : {1}", BrewingResources.GetName(m_Variety), Amount);
     }
     else
     {
         LabelTo(from, "{0} Hops Bunch", BrewingResources.GetName(m_Variety));
     }
 }
Esempio n. 4
0
        public override void AddNameProperties(ObjectPropertyList list)
        {
            base.AddNameProperties(list);
            string aleType;

            aleType = BrewingResources.GetName(m_Variety);
            if (m_Quality == AleQuality.Exceptional)
            {
                list.Add(1060847, "Black Label\t{0}", aleType);
            }
            else
            {
                list.Add(1060847, "\t{0}", aleType);
            }
        }
Esempio n. 5
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);
            int    number;
            string aleType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Brewery", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Cheap Ale");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }
            aleType = BrewingResources.GetName(m_Variety);
            if (m_Quality == AleQuality.Exceptional)
            {
                this.LabelTo(from, "Black Label {0}", aleType);
            }
            else
            {
                this.LabelTo(from, "{0}", aleType);
            }
            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);
        }
Esempio n. 6
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            int    number;
            string meadType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Brewery", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Cheap Mead");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }

            meadType = BrewingResources.GetName(m_Variety);

            if (m_Quality == MeadQuality.Exceptional)
            {
                this.LabelTo(from, "Black Label {0}", meadType);
            }
            else
            {
                this.LabelTo(from, "{0}", meadType);
            }

            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);
        }